From 999c2c7b8d93e65a6ef33cbae26cf10e2928af09 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 19 Oct 2021 23:52:02 -0700 Subject: [PATCH] Add a comment about how to fix bogus test_host_resolution_bad_address failures --- Lib/test/test_socket.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index eeb8e8c98a1494..394d2942483fb2 100755 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1017,8 +1017,10 @@ def test_host_resolution(self): 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"