diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:26:00 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:26:00 (GMT) |
| commit | 38a33ec44cc4590f2e2e9fe7aaf8bd63d4ab24e0 (patch) | |
| tree | da40afe9298176fd7723a1d9b61f1ea479171a14 /Lib/test/test_urllib2.py | |
| parent | e8c9e14af9bd9f2ced50e8b6535e45f0d33d8e72 (diff) | |
| download | cpython-38a33ec44cc4590f2e2e9fe7aaf8bd63d4ab24e0.zip cpython-38a33ec44cc4590f2e2e9fe7aaf8bd63d4ab24e0.tar.gz cpython-38a33ec44cc4590f2e2e9fe7aaf8bd63d4ab24e0.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 5b2c708..32ffd0a 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -25,7 +25,7 @@ class TrivialTests(unittest.TestCase): self.assertRaises(ValueError, urllib2.urlopen, 'bogus url') # XXX Name hacking to get this to work on Windows. - fname = os.path.abspath(urllib2.__file__).replace('\\', '/') + fname = os.path.abspath(urllib2.__file__).replace(os.sep, '/') # And more hacking to get it to work on MacOS. This assumes # urllib.pathname2url works, unfortunately... |
