Skip to content

Commit 6ef4507

Browse files
authored
Add a comment about how to fix bogus test_host_resolution_bad_address failures (#29085)
1 parent 8863a0f commit 6ef4507

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_socket.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,10 @@ def test_host_resolution(self):
10171017

10181018
def test_host_resolution_bad_address(self):
10191019
# These are all malformed IP addresses and expected not to resolve to
1020-
# any result. But some ISPs, e.g. AWS, may successfully resolve these
1021-
# IPs.
1020+
# any result. But some ISPs, e.g. AWS and AT&T, may successfully
1021+
# resolve these IPs. In particular, AT&T's DNS Error Assist service
1022+
# will break this test. See https://bugs.python.org/issue42092 for a
1023+
# workaround.
10221024
explanation = (
10231025
"resolving an invalid IP address did not raise OSError; "
10241026
"can be caused by a broken DNS server"

0 commit comments

Comments
 (0)