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 @@ -826,7 +826,6 @@ def test_file(self):
826
826
for url , ftp in [
827
827
("file://ftp.example.com//foo.txt" , False ),
828
828
("file://ftp.example.com///foo.txt" , False ),
829
- # XXXX bug: fails with OSError, should be URLError
830
829
("file://ftp.example.com/foo.txt" , False ),
831
830
("file://somehost//foo/something.txt" , False ),
832
831
("file://localhost//foo/something.txt" , False ),
@@ -835,7 +834,7 @@ def test_file(self):
835
834
try :
836
835
h .file_open (req )
837
836
# XXXX remove OSError when bug fixed
838
- except ( urllib .error .URLError , OSError ) :
837
+ except urllib .error .URLError :
839
838
self .assertFalse (ftp )
840
839
else :
841
840
self .assertIs (o .req , req )
@@ -1616,7 +1615,6 @@ def test_invalid_closed(self):
1616
1615
self .assertTrue (conn .fakesock .closed , "Connection not closed" )
1617
1616
1618
1617
1619
-
1620
1618
class MiscTests (unittest .TestCase ):
1621
1619
1622
1620
def opener_has_handler (self , opener , handler_class ):
You can’t perform that action at this time.
0 commit comments