From c12a813aa7671ee12ccb79a70177a62bcefa2561 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 26 Oct 2007 04:29:23 +0000 Subject: Patch # 1331 by Christian Heimes. The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux. --- Lib/test/test_subprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_subprocess.py') diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index fea98dc891..39a889ddaf 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 -- cgit v1.2.1