From 59c05595546ff317f6ffa317b3232b5f6f54c9e2 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Wed, 13 Oct 2004 06:55:40 +0000 Subject: [PATCH] normalize case when comparing directory names (problem reported by "Khalid A. B." on python-dev) --- Lib/test/test_subprocess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()