Skip to content

Commit e7db0e3

Browse files
authored
PYTHON-5342 - Skip async test_srv_polling tests on Windows (#2320)
1 parent 02c3df6 commit e7db0e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/asynchronous/test_srv_polling.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import time
2121
from test.utils_shared import FunctionCallRecorder
2222
from typing import Any
23+
from unittest import skipIf
2324

2425
sys.path[0:0] = [""]
2526

@@ -91,6 +92,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
9192
self.disable()
9293

9394

95+
@skipIf(not _IS_SYNC and sys.platform == "win32", "PYTHON-5342 known issue on Windows")
9496
class TestSrvPolling(AsyncPyMongoTestCase):
9597
BASE_SRV_RESPONSE = [
9698
("localhost.test.build.10gen.cc", 27017),

test/test_srv_polling.py

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import time
2121
from test.utils_shared import FunctionCallRecorder
2222
from typing import Any
23+
from unittest import skipIf
2324

2425
sys.path[0:0] = [""]
2526

@@ -91,6 +92,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
9192
self.disable()
9293

9394

95+
@skipIf(not _IS_SYNC and sys.platform == "win32", "PYTHON-5342 known issue on Windows")
9496
class TestSrvPolling(PyMongoTestCase):
9597
BASE_SRV_RESPONSE = [
9698
("localhost.test.build.10gen.cc", 27017),

0 commit comments

Comments
 (0)