summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2021-10-20 15:08:57 (GMT)
committerGitHub <noreply@github.com>2021-10-20 15:08:57 (GMT)
commit6ef4507c74106884e6c8847f08d004511c4f1197 (patch)
treeb4766d8d8fb1af0b1294c0092842d8a0772b67ee /Lib/test/test_socket.py
parent8863a0fcc5f04ab7c3428e713917831f9b1deb18 (diff)
downloadcpython-6ef4507c74106884e6c8847f08d004511c4f1197.zip
cpython-6ef4507c74106884e6c8847f08d004511c4f1197.tar.gz
cpython-6ef4507c74106884e6c8847f08d004511c4f1197.tar.bz2
Add a comment about how to fix bogus test_host_resolution_bad_address failures (#29085)
Diffstat (limited to 'Lib/test/test_socket.py')
-rwxr-xr-xLib/test/test_socket.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index eeb8e8c..394d294 100755
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1017,8 +1017,10 @@ class GeneralModuleTests(unittest.TestCase):
def test_host_resolution_bad_address(self):
# These are all malformed IP addresses and expected not to resolve to
- # any result. But some ISPs, e.g. AWS, may successfully resolve these
- # IPs.
+ # any result. But some ISPs, e.g. AWS and AT&T, may successfully
+ # resolve these IPs. In particular, AT&T's DNS Error Assist service
+ # will break this test. See https://bugs.python.org/issue42092 for a
+ # workaround.
explanation = (
"resolving an invalid IP address did not raise OSError; "
"can be caused by a broken DNS server"