Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb5297a

Browse files
DimitrisJimbrettcannon
authored andcommitted
bpo-29836: Remove nturl2path from test_sundry and amend the module docstring (GH-694)
The module is implicitly tested through test_urllib.
1 parent 1b038e0 commit cb5297a

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Lib/nturl2path.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""Convert a NT pathname to a file URL and vice versa."""
1+
"""Convert a NT pathname to a file URL and vice versa.
2+
3+
This module only exists to provide OS-specific code
4+
for urllib.requests, thus do not use directly.
5+
"""
6+
# Testing is done through test_urllib.
27

38
def url2pathname(url):
49
"""OS-specific conversion from a relative URL of the 'file' scheme

Lib/test/test_sundry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
class TestUntestedModules(unittest.TestCase):
88
def test_untested_modules_can_be_imported(self):
9-
untested = ('bdb', 'encodings', 'formatter',
10-
'nturl2path', 'tabnanny')
9+
untested = ('bdb', 'encodings', 'formatter', 'tabnanny')
1110
with support.check_warnings(quiet=True):
1211
for name in untested:
1312
try:

0 commit comments

Comments
 (0)