Skip to content

Commit 9844d3d

Browse files
authored
PYTHON-2972 Test Failure - test_srv_max_hosts_kwarg when dnspython is not installed (#768)
1 parent 3235f96 commit 9844d3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,8 @@ def test_service_name_from_kwargs(self):
16411641
self.assertEqual(client._topology_settings._srv_service_name,
16421642
'customname')
16431643

1644+
@unittest.skipUnless(
1645+
_HAVE_DNSPYTHON, "DNS-related tests need dnspython to be installed")
16441646
def test_srv_max_hosts_kwarg(self):
16451647
client = MongoClient(
16461648
'mongodb+srv://test1.test.build.10gen.cc/')

0 commit comments

Comments
 (0)