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:
Guido van Rossum 2007-10-26 04:29:23 +00:00
parent daa251ca09
commit c12a813aa7
7 changed files with 25 additions and 15 deletions

View file

@ -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