File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1532,7 +1532,7 @@ def test_pathname2url_win(self):
1532
1532
self .assertEqual (fn ('C:\\ a\\ b\xe9 ' ), '///C:/a/b%C3%A9' )
1533
1533
self .assertEqual (fn ('C:\\ foo\\ bar\\ spam.foo' ), "///C:/foo/bar/spam.foo" )
1534
1534
# Long drive letter
1535
- self .assertEqual (fn ("XX:\\ " ), "file:XX: /" )
1535
+ self .assertEqual (fn ("XX:\\ " ), "XX%3A /" )
1536
1536
# No drive letter
1537
1537
self .assertEqual (fn ("\\ folder\\ test\\ " ), '/folder/test/' )
1538
1538
self .assertEqual (fn ("\\ \\ folder\\ test\\ " ), '//folder/test/' )
@@ -1566,7 +1566,7 @@ def test_url2pathname_win(self):
1566
1566
self .assertEqual (fn ('/C|//' ), 'C:\\ \\ ' )
1567
1567
self .assertEqual (fn ('///C|/path' ), 'C:\\ path' )
1568
1568
# No DOS drive
1569
- self .assertEqual (fn ("///C/test/" ), '\\ \\ \\ C\\ test\\ ' )
1569
+ self .assertEqual (fn ("///C/test/" ), '\\ C\\ test\\ ' )
1570
1570
self .assertEqual (fn ("////C/test/" ), '\\ \\ C\\ test\\ ' )
1571
1571
# DOS drive paths
1572
1572
self .assertEqual (fn ('C:/path/to/file' ), 'C:\\ path\\ to\\ file' )
Original file line number Diff line number Diff line change @@ -43,10 +43,6 @@ def test___all__(self):
43
43
context = {}
44
44
exec ('from urllib.%s import *' % module , context )
45
45
del context ['__builtins__' ]
46
- if module == 'request' and os .name == 'nt' :
47
- u , p = context .pop ('url2pathname' ), context .pop ('pathname2url' )
48
- self .assertEqual (u .__module__ , 'nturl2path' )
49
- self .assertEqual (p .__module__ , 'nturl2path' )
50
46
for k , v in context .items ():
51
47
self .assertEqual (v .__module__ , 'urllib.%s' % module ,
52
48
"%r is exposed in 'urllib.%s' but defined in %r" %
You can’t perform that action at this time.
0 commit comments