diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2019-05-21 23:00:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 23:00:35 (GMT) |
commit | 2725cb01d7cbf5caecb51cc20d97ba324b09ce96 (patch) | |
tree | b0eec2b2d08a65dbfa620ca3bede5151396bf996 | |
parent | eca18aac7b5952d23854d27dc8e502dfb0bb0505 (diff) | |
download | cpython-2725cb01d7cbf5caecb51cc20d97ba324b09ce96.zip cpython-2725cb01d7cbf5caecb51cc20d97ba324b09ce96.tar.gz cpython-2725cb01d7cbf5caecb51cc20d97ba324b09ce96.tar.bz2 |
bpo-36948: Fix test_urlopener_retrieve_file on Windows (GH-13476)
-rw-r--r-- | Lib/test/test_urllib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 74b19fb..6b995fe 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -1470,7 +1470,8 @@ class URLopener_Tests(FakeHTTPMixin, unittest.TestCase): os.close(fd) fileurl = "file:" + urllib.request.pathname2url(tmpfile) filename, _ = urllib.request.URLopener().retrieve(fileurl) - self.assertEqual(filename, tmpfile) + # Some buildbots have TEMP folder that uses a lowercase drive letter. + self.assertEqual(os.path.normcase(filename), os.path.normcase(tmpfile)) @support.ignore_warnings(category=DeprecationWarning) def test_urlopener_retrieve_remote(self): |