diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:26:29 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:26:29 (GMT) |
| commit | 0e992b352aff5fae23ee0f8893e68ce27cba6af7 (patch) | |
| tree | fabaca757d5f04a651c378896a2cf2cf2e1ac9a3 /Lib/test/test_urllib2.py | |
| parent | 4145652f8dab30f57ca34c56d97d306c915b5d8e (diff) | |
| parent | 5106d044ecd6d7a8124dd4b526b77588747e0167 (diff) | |
| download | cpython-0e992b352aff5fae23ee0f8893e68ce27cba6af7.zip cpython-0e992b352aff5fae23ee0f8893e68ce27cba6af7.tar.gz cpython-0e992b352aff5fae23ee0f8893e68ce27cba6af7.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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 823890e..3182390 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 |
