mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
bpo-40275: Adding threading_helper submodule in test.support (GH-20263)
This commit is contained in:
parent
7d80b35af1
commit
e80697d687
46 changed files with 483 additions and 428 deletions
|
@ -1,5 +1,3 @@
|
|||
from test import support
|
||||
from test.support.script_helper import assert_python_ok, assert_python_failure
|
||||
import builtins
|
||||
import codecs
|
||||
import gc
|
||||
|
@ -11,6 +9,9 @@ import subprocess
|
|||
import sys
|
||||
import sysconfig
|
||||
import test.support
|
||||
from test import support
|
||||
from test.support.script_helper import assert_python_ok, assert_python_failure
|
||||
from test.support import threading_helper
|
||||
import textwrap
|
||||
import unittest
|
||||
import warnings
|
||||
|
@ -365,7 +366,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
)
|
||||
|
||||
# sys._current_frames() is a CPython-only gimmick.
|
||||
@test.support.reap_threads
|
||||
@threading_helper.reap_threads
|
||||
def test_current_frames(self):
|
||||
import threading
|
||||
import traceback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue