From 3dfd03c9eb27455affb9b440b9290f241704bc2a Mon Sep 17 00:00:00 2001 From: Bernie Hackett Date: Wed, 17 Jul 2019 07:06:17 -0700 Subject: [PATCH] PYTHON-1906 Skip new SRV test if dnspython isn't available --- test/test_dns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_dns.py b/test/test_dns.py index 01395c9f2..3d75b2f06 100644 --- a/test/test_dns.py +++ b/test/test_dns.py @@ -108,6 +108,7 @@ create_tests() class TestParsingErrors(unittest.TestCase): + @unittest.skipUnless(_HAVE_DNSPYTHON, "DNS tests require the dnspython module") def test_invalid_host(self): self.assertRaisesRegex( ConfigurationError,