PYTHON-1906 Skip new SRV test if dnspython isn't available
This commit is contained in:
parent
886cf657bb
commit
3dfd03c9eb
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user