From 98d8b13fe3efef91e690a789817ad0006df4f70a Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 18 Aug 2020 19:34:20 -0700 Subject: [PATCH] add instrumentation to find out what v6 addresses windows does not like --- tests/test_address.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)) -- 2.47.3