PYTHON-1906 Skip new SRV test if dnspython isn't available

This commit is contained in:
Bernie Hackett 2019-07-17 07:06:17 -07:00
parent 886cf657bb
commit 3dfd03c9eb

View File

@ -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,