Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88c6739

Browse files
Address review: check import at the top of test_threading.test_frame_tstate_tracing
1 parent628896c commit88c6739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Lib/test/test_threading.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ def test_BoundedSemaphore_limit(self):
983983

984984
@cpython_only
985985
deftest_frame_tstate_tracing(self):
986+
_testcapi=import_module("_testcapi")
986987
# Issue #14432: Crash when a generator is created in a C thread that is
987988
# destroyed while the generator is still used. The issue was that a
988989
# generator contains a frame, and the frame kept a reference to the
@@ -1010,7 +1011,6 @@ def callback():
10101011
threading.settrace(noop_trace)
10111012

10121013
# Create a generator in a C thread which exits after the call
1013-
_testcapi=import_module("_testcapi")
10141014
_testcapi.call_in_temporary_c_thread(callback)
10151015

10161016
# Call the generator in a different Python thread, check that the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp