mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)
This commit is contained in:
parent
bb4a585d90
commit
bfb1cf4465
15 changed files with 153 additions and 144 deletions
|
@ -349,7 +349,7 @@ class NetworkTestCase(unittest.TestCase):
|
|||
@classmethod
|
||||
def setUpClass(cls):
|
||||
support.requires('network')
|
||||
with support.transient_internet(cls.base_url):
|
||||
with socket_helper.transient_internet(cls.base_url):
|
||||
cls.parser = urllib.robotparser.RobotFileParser(cls.robots_txt)
|
||||
cls.parser.read()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue