File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,6 @@ def test_file(self):
830
830
for url , ftp in [
831
831
("file://ftp.example.com//foo.txt" , False ),
832
832
("file://ftp.example.com///foo.txt" , False ),
833
- # XXXX bug: fails with OSError, should be URLError
834
833
("file://ftp.example.com/foo.txt" , False ),
835
834
("file://somehost//foo/something.txt" , False ),
836
835
("file://localhost//foo/something.txt" , False ),
@@ -839,7 +838,7 @@ def test_file(self):
839
838
try :
840
839
h .file_open (req )
841
840
# XXXX remove OSError when bug fixed
842
- except ( urllib .error .URLError , OSError ) :
841
+ except urllib .error .URLError :
843
842
self .assertFalse (ftp )
844
843
else :
845
844
self .assertIs (o .req , req )
@@ -1689,7 +1688,6 @@ def test_invalid_closed(self):
1689
1688
self .assertTrue (conn .fakesock .closed , "Connection not closed" )
1690
1689
1691
1690
1692
-
1693
1691
class MiscTests (unittest .TestCase ):
1694
1692
1695
1693
def opener_has_handler (self , opener , handler_class ):
You can’t perform that action at this time.
0 commit comments