File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,7 @@ def testPasswordProtectedSite(self):
345345 self .assertFalse (parser .can_fetch ("*" , robots_url ))
346346
347347
348+ @support .requires_working_socket ()
348349class NetworkTestCase (unittest .TestCase ):
349350
350351 base_url = 'http://www.pythontest.net/'
Original file line number Diff line number Diff line change 2121
2222
2323test .support .requires ("network" )
24+ test .support .requires_working_socket (module = True )
25+
2426
2527TEST_STR = b"hello world\n "
2628HOST = socket_helper .HOST
Original file line number Diff line number Diff line change 55from test import support
66from test .support import socket_helper
77
8- # This requires the 'network' resource as given on the regrtest command line.
9- skip_expected = not support .is_resource_enabled ('network' )
10-
118import time
129import errno
1310import socket
@@ -292,6 +289,7 @@ def testRecvfromTimeout(self):
292289
293290def setUpModule ():
294291 support .requires ('network' )
292+ support .requires_working_socket (module = True )
295293
296294
297295if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments