mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -2,6 +2,7 @@ import sys
|
|||
import unittest
|
||||
from doctest import DocTestSuite
|
||||
from test import support
|
||||
from test.support import threading_helper
|
||||
import weakref
|
||||
import gc
|
||||
|
||||
|
@ -65,8 +66,8 @@ class BaseLocalTest:
|
|||
# Simply check that the variable is correctly set
|
||||
self.assertEqual(local.x, i)
|
||||
|
||||
with support.start_threads(threading.Thread(target=f, args=(i,))
|
||||
for i in range(10)):
|
||||
with threading_helper.start_threads(threading.Thread(target=f, args=(i,))
|
||||
for i in range(10)):
|
||||
pass
|
||||
|
||||
def test_derived_cycle_dealloc(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue