Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Lib/test/test_robotparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def testPasswordProtectedSite(self):
self.assertFalse(parser.can_fetch("*", robots_url))


@support.requires_working_socket()
class NetworkTestCase(unittest.TestCase):

base_url = 'http://www.pythontest.net/'
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_socketserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@


test.support.requires("network")
test.support.requires_working_socket(module=True)


TEST_STR = b"hello world\n"
HOST = socket_helper.HOST
Expand Down
4 changes: 1 addition & 3 deletions Lib/test/test_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from test import support
from test.support import socket_helper

# This requires the 'network' resource as given on the regrtest command line.
skip_expected = not support.is_resource_enabled('network')

import time
import errno
import socket
Expand Down Expand Up @@ -292,6 +289,7 @@ def testRecvfromTimeout(self):

def setUpModule():
support.requires('network')
support.requires_working_socket(module=True)


if __name__ == "__main__":
Expand Down