From e7db0e34aadeeccd320683fe33434100ef4c1540 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Tue, 29 Apr 2025 08:42:22 -0400 Subject: [PATCH] PYTHON-5342 - Skip async test_srv_polling tests on Windows (#2320) --- test/asynchronous/test_srv_polling.py | 2 ++ test/test_srv_polling.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/asynchronous/test_srv_polling.py b/test/asynchronous/test_srv_polling.py index 3dcd21ef1..b40aa90cf 100644 --- a/test/asynchronous/test_srv_polling.py +++ b/test/asynchronous/test_srv_polling.py @@ -20,6 +20,7 @@ import sys import time from test.utils_shared import FunctionCallRecorder from typing import Any +from unittest import skipIf sys.path[0:0] = [""] @@ -91,6 +92,7 @@ class SrvPollingKnobs: 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 df802acb4..0d84d4124 100644 --- a/test/test_srv_polling.py +++ b/test/test_srv_polling.py @@ -20,6 +20,7 @@ import sys import time from test.utils_shared import FunctionCallRecorder from typing import Any +from unittest import skipIf sys.path[0:0] = [""] @@ -91,6 +92,7 @@ class SrvPollingKnobs: 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),