diff options
| author | Bob Halley <halley@dnspython.org> | 2020-06-18 07:32:02 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-06-18 07:32:02 -0700 |
| commit | c86ece3142cfddabaaf6aebf27d0605b96aa3e3a (patch) | |
| tree | af716f0b6f728a19cf6e8beae2b091ad1b4e1376 /tests | |
| parent | b4d57226caf949db182d27a6f6b4d13f267528b0 (diff) | |
| download | dnspython-c86ece3142cfddabaaf6aebf27d0605b96aa3e3a.tar.gz | |
cope with windows getaddrinfo
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_resolver_override.py | 12 |
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): |
