Skip to content

Commit 13d559b

Browse files
committed
PYTHON-2002 Skip failing dnspython SRV polling tests on Python 2
1 parent b572600 commit 13d559b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_srv_polling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class TestSrvPolling(unittest.TestCase):
8888

8989
CONNECTION_STRING = "mongodb+srv://test1.test.build.10gen.cc"
9090

91+
@unittest.skipIf(sys.version_info[0] < 3, "PYTHON-2002 fails on python 2")
9192
def setUp(self):
9293
if not _HAVE_DNSPYTHON:
9394
raise unittest.SkipTest("SRV polling tests require the dnspython "

0 commit comments

Comments
 (0)