mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Fix issue16300: addressing the buildbot failures on windows
This commit is contained in:
parent
32e46089a9
commit
3194d7cfce
1 changed files with 1 additions and 2 deletions
|
|
@ -275,10 +275,9 @@ Content-Type: text/html; charset=iso-8859-1
|
||||||
self.assertTrue(e.exception.filename)
|
self.assertTrue(e.exception.filename)
|
||||||
self.assertTrue(e.exception.reason)
|
self.assertTrue(e.exception.reason)
|
||||||
|
|
||||||
@unittest.skipIf(sys.platform == "win32", "Skip on Windows: issue16300")
|
|
||||||
def test_file_notexists(self):
|
def test_file_notexists(self):
|
||||||
fd, tmp_file = tempfile.mkstemp()
|
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))
|
self.assertTrue(os.path.exists(tmp_file))
|
||||||
with urlopen(tmp_fileurl) as fobj:
|
with urlopen(tmp_fileurl) as fobj:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue