1. Armin Rigo
  2. cpython-withatomic

Commits

Fredrik Lundh  committed 179e42e

normalize case when comparing directory names (problem reported by
"Khalid A. B." on python-dev)

  • Participants
  • Parent commits d1f0c70
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_subprocess.py

View file
                           '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()