summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-06-18 07:32:02 -0700
committerBob Halley <halley@dnspython.org>2020-06-18 07:32:02 -0700
commitc86ece3142cfddabaaf6aebf27d0605b96aa3e3a (patch)
treeaf716f0b6f728a19cf6e8beae2b091ad1b4e1376 /tests
parentb4d57226caf949db182d27a6f6b4d13f267528b0 (diff)
downloaddnspython-c86ece3142cfddabaaf6aebf27d0605b96aa3e3a.tar.gz
cope with windows getaddrinfo
Diffstat (limited to 'tests')
-rw-r--r--tests/test_resolver_override.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_resolver_override.py b/tests/test_resolver_override.py
index e60080b..bf98f09 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):