Skip to content

Commit 771bde9

Browse files
committed
add pypy skips
1 parent 3fa57c2 commit 771bde9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/asynchronous/unified_format.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,9 @@ def maybe_skip_test(self, spec):
533533
"maxTimeMS value in the command is less than timeoutMS",
534534
"timeoutMS applies to whole operation.*",
535535
]
536+
slow_pypy = [
537+
"timeoutMS applies to whole operation.*",
538+
]
536539
if sys.platform == "win32" and "gridfs" in class_name:
537540
self.skipTest("PYTHON-3522 CSOT GridFS test runs too slow on Windows")
538541
if sys.platform == "win32":
@@ -543,6 +546,10 @@ def maybe_skip_test(self, spec):
543546
for pat in slow_macos:
544547
if re.match(pat.lower(), description):
545548
self.skipTest("PYTHON-3522 CSOT test runs too slow on MacOS")
549+
if sys.implementation.name.lower() == "pypy":
550+
for pat in slow_pypy:
551+
if re.match(pat.lower(), description):
552+
self.skipTest("PYTHON-3522 CSOT test runs too slow on PyPy")
546553
if "change" in description or "change" in class_name:
547554
self.skipTest("CSOT not implemented for watch()")
548555
if "cursors" in class_name:

test/unified_format.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ def maybe_skip_test(self, spec):
532532
"maxTimeMS value in the command is less than timeoutMS",
533533
"timeoutMS applies to whole operation.*",
534534
]
535+
slow_pypy = [
536+
"timeoutMS applies to whole operation.*",
537+
]
535538
if sys.platform == "win32" and "gridfs" in class_name:
536539
self.skipTest("PYTHON-3522 CSOT GridFS test runs too slow on Windows")
537540
if sys.platform == "win32":
@@ -542,6 +545,10 @@ def maybe_skip_test(self, spec):
542545
for pat in slow_macos:
543546
if re.match(pat.lower(), description):
544547
self.skipTest("PYTHON-3522 CSOT test runs too slow on MacOS")
548+
if sys.implementation.name.lower() == "pypy":
549+
for pat in slow_pypy:
550+
if re.match(pat.lower(), description):
551+
self.skipTest("PYTHON-3522 CSOT test runs too slow on PyPy")
545552
if "change" in description or "change" in class_name:
546553
self.skipTest("CSOT not implemented for watch()")
547554
if "cursors" in class_name:

0 commit comments

Comments
 (0)