]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
skip getaddrinfo tests on windows as the originals fail
authorBob Halley <halley@dnspython.org>
Thu, 18 Jun 2020 14:39:13 +0000 (07:39 -0700)
committerBob Halley <halley@dnspython.org>
Thu, 18 Jun 2020 14:39:13 +0000 (07:39 -0700)
tests/test_resolver_override.py

index bf98f09842d13c5758799b2df31c17a62de34243..5f93281e378236d6aae495681f31e48fb5758612 100644 (file)
@@ -1,6 +1,7 @@
 # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
 
 import socket
+import sys
 import unittest
 
 import dns.name
@@ -79,6 +80,8 @@ class OverrideSystemResolverTestCase(unittest.TestCase):
         b = dns.resolver._original_getaddrinfo(*args, **kwargs)
         return self.equivalent_info(a, b)
 
+    @unittest.skipIf(sys.platform == 'win32',
+                     'avoid windows original getaddrinfo issues')
     def test_basic_getaddrinfo(self):
         self.assertTrue(self.equivalent('dns.google', 53, socket.AF_INET,
                                         socket.SOCK_DGRAM))