diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-04 21:15:37 (GMT) |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-04 21:15:37 (GMT) |
| commit | 3dbb1f17cbbc6f616a75e902c527a41bb7fc8bfe (patch) | |
| tree | bf87a467b57294c2835ee50899f5e4eaf419468c /Lib/test/test_urllib2.py | |
| parent | 245a94b6e8b776bbb307904768b1c607ae0f0a71 (diff) | |
| download | cpython-3dbb1f17cbbc6f616a75e902c527a41bb7fc8bfe.zip cpython-3dbb1f17cbbc6f616a75e902c527a41bb7fc8bfe.tar.gz cpython-3dbb1f17cbbc6f616a75e902c527a41bb7fc8bfe.tar.bz2 | |
Fix test_urllib2 error on Windows in relation with issue #13287.
Diffstat (limited to 'Lib/test/test_urllib2.py')
| -rw-r--r-- | Lib/test/test_urllib2.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index e55140e..aa1854d 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -26,6 +26,10 @@ class TrivialTests(unittest.TestCase): context = {} exec('from urllib.%s import *' % module, context) del context['__builtins__'] + if module == 'request' and os.name == 'nt': + u, p = context.pop('url2pathname'), context.pop('pathname2url') + self.assertEqual(u.__module__, 'nturl2path') + self.assertEqual(p.__module__, 'nturl2path') for k, v in context.items(): self.assertEqual(v.__module__, 'urllib.%s' % module, "%r is exposed in 'urllib.%s' but defined in %r" % |
