bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)

This commit is contained in:
Serhiy Storchaka 2020-04-29 10:36:20 +03:00 committed by GitHub
parent bb4a585d90
commit bfb1cf4465
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 153 additions and 144 deletions

View file

@ -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