[Python-checkins] python/dist/src/Lib/test test_subprocess.py, 1.9,
1.10
effbot at users.sourceforge.net
effbot at users.sourceforge.net
Wed Oct 13 08:55:42 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20569/Lib/test
Modified Files:
test_subprocess.py
Log Message:
normalize case when comparing directory names (problem reported by
"Khalid A. B." on python-dev)
Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- test_subprocess.py 13 Oct 2004 04:07:12 -0000 1.9
+++ test_subprocess.py 13 Oct 2004 06:55:40 -0000 1.10
@@ -216,7 +216,8 @@
'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()
More information about the Python-checkins
mailing list