Skip to content

Commit 7183bd6

Browse files
committed
Fix windows tests, spacing.
1 parent e47c565 commit 7183bd6

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

Lib/test/test_nturl2path.py

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

33
from test.support import warnings_helper
44

5-
nturl2path = warnings_helper.import_deprecated("nturl2path")
65

6+
nturl2path = warnings_helper.import_deprecated("nturl2path")
77

88

99
class NTURL2PathTest(unittest.TestCase):
@@ -103,6 +103,5 @@ def test_url2pathname(self):
103103
self.assertEqual(fn(nturl2path.pathname2url(path)), path)
104104

105105

106-
107106
if __name__ == '__main__':
108107
unittest.main()

Lib/test/test_urllib2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ def test___all__(self):
4444
context = {}
4545
exec('from urllib.%s import *' % module, context)
4646
del context['__builtins__']
47-
if module == 'request' and os.name == 'nt':
48-
u, p = context.pop('url2pathname'), context.pop('pathname2url')
49-
self.assertEqual(u.__module__, 'nturl2path')
50-
self.assertEqual(p.__module__, 'nturl2path')
5147
for k, v in context.items():
5248
self.assertEqual(v.__module__, 'urllib.%s' % module,
5349
"%r is exposed in 'urllib.%s' but defined in %r" %

Lib/urllib/request.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,6 @@ def data_open(self, req):
16461646

16471647
# Code move from the old urllib module
16481648

1649-
# Helper for non-unix systems
16501649
def url2pathname(url):
16511650
"""OS-specific conversion from a relative URL of the 'file' scheme
16521651
to a file system path; not recommended for general use."""

0 commit comments

Comments
 (0)