A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-October/049358.html below:

[Python-Dev] Re: test_cwd of test_subprocess.py fails on Win98

[Python-Dev] Re: test_cwd of test_subprocess.py fails on Win98Fredrik 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4