mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
parent
a045f191b4
commit
94f25283c9
20 changed files with 52 additions and 196 deletions
|
@ -22,11 +22,6 @@ class TrivialTests(unittest.TestCase):
|
|||
# XXX Name hacking to get this to work on Windows.
|
||||
fname = os.path.abspath(urllib.request.__file__).replace('\\', '/')
|
||||
|
||||
# And more hacking to get it to work on MacOS. This assumes
|
||||
# urllib.pathname2url works, unfortunately...
|
||||
if os.name == 'mac':
|
||||
fname = '/' + fname.replace(':', '/')
|
||||
|
||||
if os.name == 'nt':
|
||||
file_url = "file:///%s" % fname
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue