File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -983,6 +983,7 @@ def test_BoundedSemaphore_limit(self):
983
983
984
984
@cpython_only
985
985
def test_frame_tstate_tracing (self ):
986
+ _testcapi = import_module ("_testcapi" )
986
987
# Issue #14432: Crash when a generator is created in a C thread that is
987
988
# destroyed while the generator is still used. The issue was that a
988
989
# generator contains a frame, and the frame kept a reference to the
@@ -1010,7 +1011,6 @@ def callback():
1010
1011
threading .settrace (noop_trace )
1011
1012
1012
1013
# Create a generator in a C thread which exits after the call
1013
- _testcapi = import_module ("_testcapi" )
1014
1014
_testcapi .call_in_temporary_c_thread (callback )
1015
1015
1016
1016
# Call the generator in a different Python thread, check that the
You can’t perform that action at this time.
0 commit comments