From: Jim Fasarakis-Hilliard Date: Fri, 17 Mar 2017 18:16:20 +0000 (+0200) Subject: bpo-29836: Remove nturl2path from test_sundry and amend the module docstring (GH... X-Git-Tag: v3.7.0a1~1115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb5297a9e6b51c736ab8564b1a123577ba0dd2ad;p=thirdparty%2FPython%2Fcpython.git bpo-29836: Remove nturl2path from test_sundry and amend the module docstring (GH-694) The module is implicitly tested through test_urllib. --- diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py index 36dc7658870e..853e6608380e 100644 --- a/Lib/nturl2path.py +++ b/Lib/nturl2path.py @@ -1,4 +1,9 @@ -"""Convert a NT pathname to a file URL and vice versa.""" +"""Convert a NT pathname to a file URL and vice versa. + +This module only exists to provide OS-specific code +for urllib.requests, thus do not use directly. +""" +# Testing is done through test_urllib. def url2pathname(url): """OS-specific conversion from a relative URL of the 'file' scheme diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py index 1fb996469821..dddf3265525a 100644 --- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -6,8 +6,7 @@ import unittest class TestUntestedModules(unittest.TestCase): def test_untested_modules_can_be_imported(self): - untested = ('bdb', 'encodings', 'formatter', - 'nturl2path', 'tabnanny') + untested = ('bdb', 'encodings', 'formatter', 'tabnanny') with support.check_warnings(quiet=True): for name in untested: try: