[Python-checkins] cpython: Fix issue16300: addressing the buildbot failures on windows
senthil.kumaran
python-checkins at python.org
Tue Oct 23 18:41:01 CEST 2012
http://hg.python.org/cpython/rev/00e5e963b7d8
changeset: 79918:00e5e963b7d8
user: Senthil Kumaran <senthil at uthcode.com>
date: Tue Oct 23 09:40:53 2012 -0700
summary:
Fix issue16300: addressing the buildbot failures on windows
files:
Lib/test/test_urllib.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -275,10 +275,9 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list