diff options
author | Barney Gale <barney.gale@gmail.com> | 2025-03-19 19:33:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 19:33:01 (GMT) |
commit | 8abfaba5a67a99c446f0c13253ee0ce97bf6fa5c (patch) | |
tree | 7b6535e35d05a39e6a7adc18620413bb729146ca /Lib/test/test_urllib2.py | |
parent | 8a33034d82314e2a5a8f39f9348e93135f94807d (diff) | |
download | cpython-8abfaba5a67a99c446f0c13253ee0ce97bf6fa5c.zip cpython-8abfaba5a67a99c446f0c13253ee0ce97bf6fa5c.tar.gz cpython-8abfaba5a67a99c446f0c13253ee0ce97bf6fa5c.tar.bz2 |
GH-125866: Deprecate `nturl2path` module (#131432)
Deprecate the `nturl2path` module. Its functionality is merged into
`urllib.request`.
Add `tests.test_nturl2path` to exercise `nturl2path`, as it's no longer
covered by `test_urllib`.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 44e6af8..088ee4c 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -44,10 +44,6 @@ 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" % |