diff --git a/test/asynchronous/test_srv_polling.py b/test/asynchronous/test_srv_polling.py index 3dcd21ef1d..b40aa90cfa 100644 --- a/test/asynchronous/test_srv_polling.py +++ b/test/asynchronous/test_srv_polling.py @@ -20,6 +20,7 @@ import time from test.utils_shared import FunctionCallRecorder from typing import Any +from unittest import skipIf sys.path[0:0] = [""] @@ -91,6 +92,7 @@ def __exit__(self, exc_type, exc_val, exc_tb): self.disable() +@skipIf(not _IS_SYNC and sys.platform == "win32", "PYTHON-5342 known issue on Windows") class TestSrvPolling(AsyncPyMongoTestCase): BASE_SRV_RESPONSE = [ ("localhost.test.build.10gen.cc", 27017), diff --git a/test/test_srv_polling.py b/test/test_srv_polling.py index df802acb43..0d84d41241 100644 --- a/test/test_srv_polling.py +++ b/test/test_srv_polling.py @@ -20,6 +20,7 @@ import time from test.utils_shared import FunctionCallRecorder from typing import Any +from unittest import skipIf sys.path[0:0] = [""] @@ -91,6 +92,7 @@ def __exit__(self, exc_type, exc_val, exc_tb): self.disable() +@skipIf(not _IS_SYNC and sys.platform == "win32", "PYTHON-5342 known issue on Windows") class TestSrvPolling(PyMongoTestCase): BASE_SRV_RESPONSE = [ ("localhost.test.build.10gen.cc", 27017),