Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the
directory containing a backslash.
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 @@
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...