From: Bob Halley Date: Wed, 19 Aug 2020 02:34:20 +0000 (-0700) Subject: add instrumentation to find out what v6 addresses windows does not like X-Git-Tag: v2.1.0rc1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98d8b13fe3efef91e690a789817ad0006df4f70a;p=thirdparty%2Fdnspython.git add instrumentation to find out what v6 addresses windows does not like --- diff --git a/tests/test_address.py b/tests/test_address.py index 82229084..98150f2c 100644 --- a/tests/test_address.py +++ b/tests/test_address.py @@ -1,6 +1,7 @@ # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license import socket +import sys import unittest import dns.exception @@ -247,6 +248,12 @@ class IPv6Tests(unittest.TestCase): "::0:a:b:c:d:e:f", "a:b:c:d:e:f:0::", ) + if sys.platform == 'win32': + for s in valid: + try: + socket.inet_pton(socket.AF_INET6, s) + except Exception: + print('win32 rejects:', s) for s in valid: self.assertEqual(dns.ipv6.inet_aton(s), socket.inet_pton(socket.AF_INET6, s))