mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +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
|
@ -1533,7 +1533,7 @@ class GeneralModuleTests(unittest.TestCase):
|
|||
def test_idna(self):
|
||||
# Check for internet access before running test
|
||||
# (issue #12804, issue #25138).
|
||||
with support.transient_internet('python.org'):
|
||||
with socket_helper.transient_internet('python.org'):
|
||||
socket.gethostbyname('python.org')
|
||||
|
||||
# these should all be successful
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue