PYTHON-2972 Test Failure - test_srv_max_hosts_kwarg when dnspython is not installed (#768)

This commit is contained in:
Julius Park 2021-10-28 16:05:32 -07:00 committed by GitHub
parent 3235f96590
commit 9844d3dc03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1641,6 +1641,8 @@ class TestClient(IntegrationTest):
self.assertEqual(client._topology_settings._srv_service_name,
'customname')
@unittest.skipUnless(
_HAVE_DNSPYTHON, "DNS-related tests need dnspython to be installed")
def test_srv_max_hosts_kwarg(self):
client = MongoClient(
'mongodb+srv://test1.test.build.10gen.cc/')