diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-29 07:36:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 07:36:20 (GMT) |
commit | bfb1cf44658934cbcd9707fb717d6770c78fbeb3 (patch) | |
tree | a9dcce79d42f76509491b3d8b165f6737143cbc5 /Lib/test/test_nntplib.py | |
parent | bb4a585d903e7fe0a46ded8c2ee3f47435ad6a66 (diff) | |
download | cpython-bfb1cf44658934cbcd9707fb717d6770c78fbeb3.zip cpython-bfb1cf44658934cbcd9707fb717d6770c78fbeb3.tar.gz cpython-bfb1cf44658934cbcd9707fb717d6770c78fbeb3.tar.bz2 |
bpo-40275: Move transient_internet from test.support to socket_helper (GH-19711)
Diffstat (limited to 'Lib/test/test_nntplib.py')
-rw-r--r-- | Lib/test/test_nntplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_nntplib.py b/Lib/test/test_nntplib.py index 2a5a0b9..8d29681 100644 --- a/Lib/test/test_nntplib.py +++ b/Lib/test/test_nntplib.py @@ -246,7 +246,7 @@ class NetworkedNNTPTestsMixin: def wrap_meth(meth): @functools.wraps(meth) def wrapped(self): - with support.transient_internet(self.NNTP_HOST): + with socket_helper.transient_internet(self.NNTP_HOST): meth(self) return wrapped for name in dir(cls): @@ -315,7 +315,7 @@ class NetworkedNNTPTests(NetworkedNNTPTestsMixin, unittest.TestCase): @classmethod def setUpClass(cls): support.requires("network") - with support.transient_internet(cls.NNTP_HOST): + with socket_helper.transient_internet(cls.NNTP_HOST): try: cls.server = cls.NNTP_CLASS(cls.NNTP_HOST, timeout=support.INTERNET_TIMEOUT, |