mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-31234: Join threads in tests (#3572)
Call thread.join() on threads to prevent the "dangling threads" warning.
This commit is contained in:
parent
1bbd482bcf
commit
18e95b4176
4 changed files with 15 additions and 3 deletions
|
@ -1618,6 +1618,9 @@ class ThreadingTest(unittest.TestCase):
|
|||
for sig in Signals[self.decimal]:
|
||||
self.assertFalse(DefaultContext.flags[sig])
|
||||
|
||||
th1.join()
|
||||
th2.join()
|
||||
|
||||
DefaultContext.prec = save_prec
|
||||
DefaultContext.Emax = save_emax
|
||||
DefaultContext.Emin = save_emin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue