]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a comment about how to fix bogus test_host_resolution_bad_address failures (...
authorBarry Warsaw <barry@python.org>
Wed, 20 Oct 2021 15:08:57 +0000 (08:08 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Oct 2021 15:08:57 +0000 (08:08 -0700)
Lib/test/test_socket.py

index eeb8e8c98a14940733c72bd4f1ee08c48684bee6..394d2942483fb2635a0ca7e984498be3ea8eedc5 100755 (executable)
@@ -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"