diff options
author | Guido van Rossum <guido@python.org> | 2007-10-26 04:29:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-26 04:29:23 (GMT) |
commit | c12a813aa7671ee12ccb79a70177a62bcefa2561 (patch) | |
tree | f6512593e7c4ed8211f2dd2c34c8676b5ed6301e /Lib/test/test_subprocess.py | |
parent | daa251ca097e7f7382ed57c10efbbaddad103afb (diff) | |
download | cpython-c12a813aa7671ee12ccb79a70177a62bcefa2561.zip cpython-c12a813aa7671ee12ccb79a70177a62bcefa2561.tar.gz cpython-c12a813aa7671ee12ccb79a70177a62bcefa2561.tar.bz2 |
Patch # 1331 by Christian Heimes.
The patch fixes some of the problems on Windows. It doesn't introduce
addition problems on Linux.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index fea98dc..39a889d 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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 |