diff --git a/hypothesis-python/src/hypothesis/core.py b/hypothesis-python/src/hypothesis/core.py index 93bcb9fac1..4e4411fadf 100644 --- a/hypothesis-python/src/hypothesis/core.py +++ b/hypothesis-python/src/hypothesis/core.py @@ -984,10 +984,11 @@ def _execute_once_for_engine(self, data: ConjectureData) -> None: """ trace: Trace = set() try: + # this is actually covered by our tests, but only on >= 3.12. if ( sys.version_info[:2] >= (3, 12) and sys.monitoring.get_tool(MONITORING_TOOL_ID) is not None - ): + ): # pragma: no cover warnings.warn( "avoiding tracing test function because tool id " f"{MONITORING_TOOL_ID} is already taken by tool "