From ca92be7ee0a0e1702a4780c7fb209fb481b569f7 Mon Sep 17 00:00:00 2001 From: Liam DeVoe Date: Sun, 3 Mar 2024 19:05:12 -0500 Subject: [PATCH] nocover 3.12 only branch --- hypothesis-python/src/hypothesis/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 "