summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2019-05-22 02:00:35 +0300
committerGitHub <noreply@github.com>2019-05-22 02:00:35 +0300
commit2725cb01d7cbf5caecb51cc20d97ba324b09ce96 (patch)
treeb0eec2b2d08a65dbfa620ca3bede5151396bf996 /Lib
parenteca18aac7b5952d23854d27dc8e502dfb0bb0505 (diff)
downloadcpython-git-2725cb01d7cbf5caecb51cc20d97ba324b09ce96.tar.gz
bpo-36948: Fix test_urlopener_retrieve_file on Windows (GH-13476)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_urllib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 74b19fbdcd..6b995fef8c 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):