diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2004-10-13 06:55:40 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2004-10-13 06:55:40 (GMT) |
commit | 59c05595546ff317f6ffa317b3232b5f6f54c9e2 (patch) | |
tree | 474de4638e4829ea903bdda16d93c69db0b12ae0 | |
parent | 7069c31bbb8ea53b2c0c6d4f7b44c664f838bab8 (diff) | |
download | cpython-59c05595546ff317f6ffa317b3232b5f6f54c9e2.zip cpython-59c05595546ff317f6ffa317b3232b5f6f54c9e2.tar.gz cpython-59c05595546ff317f6ffa317b3232b5f6f54c9e2.tar.bz2 |
normalize case when comparing directory names (problem reported by
"Khalid A. B." on python-dev)
-rw-r--r-- | Lib/test/test_subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 3e89825..ded5891 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() |