normalize case when comparing directory names (problem reported by

"Khalid A. B." on python-dev)
This commit is contained in:
Fredrik Lundh 2004-10-13 06:55:40 +00:00
parent 7069c31bbb
commit 59c0559554
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ class ProcessTestCase(unittest.TestCase):
'sys.stdout.write(os.getcwd())'], 'sys.stdout.write(os.getcwd())'],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
cwd=tmpdir) cwd=tmpdir)
self.assertEqual(p.stdout.read(), tmpdir) normcase = os.path.normcase
self.assertEqual(normcase(p.stdout.read()), normcase(tmpdir))
def test_env(self): def test_env(self):
newenv = os.environ.copy() newenv = os.environ.copy()