We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b320b8 commit 0cc3a67Copy full SHA for 0cc3a67
1 file changed
Lib/test/test_urllib.py
@@ -529,7 +529,7 @@ def test_missing_localfile(self):
529
530
def test_file_notexists(self):
531
fd, tmp_file = tempfile.mkstemp()
532
- tmp_fileurl = 'file://localhost' + tmp_file.replace(os.path.sep, '/')
+ tmp_fileurl = 'file:' + urllib.request.pathname2url(tmp_file)
533
try:
534
self.assertTrue(os.path.exists(tmp_file))
535
with urlopen(tmp_fileurl) as fobj:
0 commit comments