mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Patch # 1331 by Christian Heimes.
The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux.
This commit is contained in:
parent
daa251ca09
commit
c12a813aa7
7 changed files with 25 additions and 15 deletions
|
@ -630,7 +630,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
p = subprocess.Popen(["set"], shell=1,
|
||||
stdout=subprocess.PIPE,
|
||||
env=newenv)
|
||||
self.assertNotEqual(p.stdout.read().find("physalis"), -1)
|
||||
self.assertNotEqual(p.stdout.read().find(b"physalis"), -1)
|
||||
|
||||
def test_shell_string(self):
|
||||
# Run command through the shell (string)
|
||||
|
@ -639,7 +639,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
p = subprocess.Popen("set", shell=1,
|
||||
stdout=subprocess.PIPE,
|
||||
env=newenv)
|
||||
self.assertNotEqual(p.stdout.read().find("physalis"), -1)
|
||||
self.assertNotEqual(p.stdout.read().find(b"physalis"), -1)
|
||||
|
||||
def test_call_string(self):
|
||||
# call() function with string argument on Windows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue