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,