normalize case when comparing directory names (problem reported by
"Khalid A. B." on python-dev)
This commit is contained in:
parent
7069c31bbb
commit
59c0559554
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue