From: Bob Halley Date: Thu, 18 Jun 2020 14:32:02 +0000 (-0700) Subject: cope with windows getaddrinfo X-Git-Tag: v2.0.0rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c86ece3142cfddabaaf6aebf27d0605b96aa3e3a;p=thirdparty%2Fdnspython.git cope with windows getaddrinfo --- diff --git a/tests/test_resolver_override.py b/tests/test_resolver_override.py index e60080b0..bf98f098 100644 --- a/tests/test_resolver_override.py +++ b/tests/test_resolver_override.py @@ -64,10 +64,14 @@ class OverrideSystemResolverTestCase(unittest.TestCase): return False for x in a: if x not in b: - print('NOT EQUIVALENT') - print(a) - print(b) - return False + # Windows does not set the protocol to non-zero, so try + # looking for a zero protocol. + y = (x[0], x[1], 0, x[3], x[4]) + if y not in b: + print('NOT EQUIVALENT') + print(a) + print(b) + return False return True def equivalent(self, *args, **kwargs):