mirror of
https://github.com/python/cpython
synced 2024-09-16 00:07:33 +00:00
Fix #9588. Add sys.executable to two shell=True tests.
This commit is contained in:
parent
5e7918c712
commit
d835cf1c84
|
@ -1113,11 +1113,12 @@ def with_spaces(self, *args, **kwargs):
|
|||
|
||||
def test_shell_string_with_spaces(self):
|
||||
# call() function with string argument with spaces on Windows
|
||||
self.with_spaces('"%s" "%s"' % (self.fname, "ab cd"), shell=1)
|
||||
self.with_spaces('"%s" "%s" "%s"' % (sys.executable, self.fname,
|
||||
"ab cd"), shell=1)
|
||||
|
||||
def test_shell_sequence_with_spaces(self):
|
||||
# call() function with sequence argument with spaces on Windows
|
||||
self.with_spaces([self.fname, "ab cd"], shell=1)
|
||||
self.with_spaces([sys.executable, self.fname, "ab cd"], shell=1)
|
||||
|
||||
def test_noshell_string_with_spaces(self):
|
||||
# call() function with string argument with spaces on Windows
|
||||
|
|
Loading…
Reference in a new issue