From: Bob Halley Date: Sun, 26 Jul 2020 18:03:19 +0000 (-0700) Subject: exclude unpractical-to-test AttributeError X-Git-Tag: v2.1.0rc1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad4d2bcd39ef561bb75c721748fb26cafd4c625a;p=thirdparty%2Fdnspython.git exclude unpractical-to-test AttributeError --- diff --git a/dns/inet.py b/dns/inet.py index 25d99c2c..d3bdc64c 100644 --- a/dns/inet.py +++ b/dns/inet.py @@ -162,7 +162,7 @@ def low_level_address_tuple(high_tuple, af=None): return (addrpart, port, 0, int(scope)) try: return (addrpart, port, 0, socket.if_nametoindex(scope)) - except AttributeError: + except AttributeError: # pragma: no cover (we can't really test this) ai_flags = socket.AI_NUMERICHOST ((*_, tup), *_) = socket.getaddrinfo(address, port, flags=ai_flags) return tup