]> granicus.if.org Git - python/commitdiff
Fix issue16300: addressing the buildbot failures on windows
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 23 Oct 2012 16:40:53 +0000 (09:40 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 23 Oct 2012 16:40:53 +0000 (09:40 -0700)
Lib/test/test_urllib.py

index 71e80bc0b26b1ba336ba8336c80104bde31601db..2eac4e3cec22c203f42f3738196ec11a054ea86e 100644 (file)
@@ -275,10 +275,9 @@ Content-Type: text/html; charset=iso-8859-1
         self.assertTrue(e.exception.filename)
         self.assertTrue(e.exception.reason)
 
-    @unittest.skipIf(sys.platform == "win32", "Skip on Windows: issue16300")
     def test_file_notexists(self):
         fd, tmp_file = tempfile.mkstemp()
-        tmp_fileurl = 'file://localhost' + tmp_file
+        tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/')
 
         self.assertTrue(os.path.exists(tmp_file))
         with urlopen(tmp_fileurl) as fobj: