Add a comment about how to fix bogus test_host_resolution_bad_address failures (#29085)

This commit is contained in:
Barry Warsaw 2021-10-20 08:08:57 -07:00 committed by GitHub
parent 8863a0fcc5
commit 6ef4507c74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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