Skip to content

Commit 3dfd03c

Browse files
committed
PYTHON-1906 Skip new SRV test if dnspython isn't available
1 parent 886cf65 commit 3dfd03c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_dns.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def create_tests():
108108

109109
class TestParsingErrors(unittest.TestCase):
110110

111+
@unittest.skipUnless(_HAVE_DNSPYTHON, "DNS tests require the dnspython module")
111112
def test_invalid_host(self):
112113
self.assertRaisesRegex(
113114
ConfigurationError,

0 commit comments

Comments
 (0)