summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 08:26:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 08:26:14 (GMT)
commit5106d044ecd6d7a8124dd4b526b77588747e0167 (patch)
tree7a139df0a25590e08a05edcaf6b228002fd71cec /Lib/test/test_urllib2.py
parent624caf7bcb81c2ebe1b6be554a90a2b549e18c96 (diff)
downloadcpython-5106d044ecd6d7a8124dd4b526b77588747e0167.zip
cpython-5106d044ecd6d7a8124dd4b526b77588747e0167.tar.gz
cpython-5106d044ecd6d7a8124dd4b526b77588747e0167.tar.bz2
Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the
directory containing a backslash.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 9ea39a4..c746b9a 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -44,7 +44,7 @@ class TrivialTests(unittest.TestCase):
self.assertRaises(ValueError, urllib.request.urlopen, 'bogus url')
# XXX Name hacking to get this to work on Windows.
- fname = os.path.abspath(urllib.request.__file__).replace('\\', '/')
+ fname = os.path.abspath(urllib.request.__file__).replace(os.sep, '/')
if os.name == 'nt':
file_url = "file:///%s" % fname