Skip to content

Commit

Permalink
nocover 3.12 only branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Mar 4, 2024
1 parent 2a99f19 commit ca92be7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hypothesis-python/src/hypothesis/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit ca92be7

Please sign in to comment.