diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 3e89825a42f..ded58910497 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -216,7 +216,8 @@ class ProcessTestCase(unittest.TestCase): 'sys.stdout.write(os.getcwd())'], stdout=subprocess.PIPE, cwd=tmpdir) - self.assertEqual(p.stdout.read(), tmpdir) + normcase = os.path.normcase + self.assertEqual(normcase(p.stdout.read()), normcase(tmpdir)) def test_env(self): newenv = os.environ.copy()