File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments