[Python-Dev] Re: test_cwd of test_subprocess.py fails on Win98
Fredrik Lundh
fredrik at pythonware.com
Wed Oct 13 08:56:24 CEST 2004
"Khalid A. B." wrote:
> The test fails because it seems to be comparing "C:\WINDOWS\TEMP" with
> "C:\WINDOWS\Temp" and even though they are the same thing in Win98,
> they are of cource not equal.
I just applied the patch below, which I think does the same thing in a
slightly more convenient way.
</F>
--- Lib/test/test_subprocess.py 13 Oct 2004 04:07:12 -0000 1.9
+++ Lib/test/test_subprocess.py 13 Oct 2004 06:52:56 -0000
@@ -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-Dev
mailing list