From c1fa465d8c59d14b9994a6960c923b0ba083bde3 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Thu, 27 Aug 2026 16:27:24 -0400 Subject: [PATCH] PYTHON-6059 - Skip CSOT unified tests when running with coverage --- test/asynchronous/unified_format.py | 2 ++ test/unified_format.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/asynchronous/unified_format.py b/test/asynchronous/unified_format.py index 5e6e24e9c4..d3c1d14d57 100644 --- a/test/asynchronous/unified_format.py +++ b/test/asynchronous/unified_format.py @@ -642,6 +642,8 @@ def maybe_skip_test(self, spec): self.skipTest("CSOT not implemented for with_transaction") if "transaction" in class_name or "transaction" in description: self.skipTest("CSOT not implemented for transactions") + if "COVERAGE" in os.environ: + self.skipTest("CSOT tests are inconsistent with coverage") # Some tests need to be skipped based on the operations they try to run. for op in spec["operations"]: diff --git a/test/unified_format.py b/test/unified_format.py index 4892a91e52..acedd3a5ef 100644 --- a/test/unified_format.py +++ b/test/unified_format.py @@ -641,6 +641,8 @@ def maybe_skip_test(self, spec): self.skipTest("CSOT not implemented for with_transaction") if "transaction" in class_name or "transaction" in description: self.skipTest("CSOT not implemented for transactions") + if "COVERAGE" in os.environ: + self.skipTest("CSOT tests are inconsistent with coverage") # Some tests need to be skipped based on the operations they try to run. for op in spec["operations"]: