Skip to content

Commit

Permalink
bpo-36948: Fix test_urlopener_retrieve_file on Windows (GH-13476)
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag committed May 21, 2019
1 parent eca18aa commit 2725cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_urllib.py
Expand Up @@ -1470,7 +1470,8 @@ def test_urlopener_retrieve_file(self):
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):
Expand Down

0 comments on commit 2725cb0

Please sign in to comment.