Skip to content

Commit f1b1e4f

Browse files
committed
FIx race
1 parent 03f447e commit f1b1e4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_external_inspection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import time
99
from asyncio import staggered, taskgroups, base_events, tasks
1010
from unittest.mock import ANY
11-
from test.support import os_helper, SHORT_TIMEOUT, busy_retry
11+
from test.support import os_helper, SHORT_TIMEOUT, busy_retry, requires_gil_enabled
1212
from test.support.script_helper import make_script
1313
from test.support.socket_helper import find_unused_port
1414

@@ -882,6 +882,7 @@ def test_self_trace(self):
882882
sys.platform == "linux" and not PROCESS_VM_READV_SUPPORTED,
883883
"Test only runs on Linux with process_vm_readv support",
884884
)
885+
@requires_gil_enabled
885886
def test_only_active_thread(self):
886887
# Test that only_active_thread parameter works correctly
887888
port = find_unused_port()

0 commit comments

Comments
 (0)