From 9844d3dc038c8f33b3dc78e0cc0b33dbdba18f24 Mon Sep 17 00:00:00 2001 From: Julius Park Date: Thu, 28 Oct 2021 16:05:32 -0700 Subject: [PATCH] PYTHON-2972 Test Failure - test_srv_max_hosts_kwarg when dnspython is not installed (#768) --- test/test_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_client.py b/test/test_client.py index 745e8d6f2..bad4ed918 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -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/')