summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2004-10-13 06:55:40 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2004-10-13 06:55:40 (GMT)
commit59c05595546ff317f6ffa317b3232b5f6f54c9e2 (patch)
tree474de4638e4829ea903bdda16d93c69db0b12ae0 /Lib/test/test_subprocess.py
parent7069c31bbb8ea53b2c0c6d4f7b44c664f838bab8 (diff)
downloadcpython-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)
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py3
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()