summaryrefslogtreecommitdiff
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-09-14 08:43:04 -0700
committerGitHub <noreply@github.com>2017-09-14 08:43:04 -0700
commit18e95b4176256f100429a806d0455406df98f984 (patch)
tree93ee1ec40fe57593028605193ec1ccc45d7de841 /Lib/test/test_decimal.py
parent1bbd482bcf6ea36bfe488f868810ffe110238ae1 (diff)
downloadcpython-git-18e95b4176256f100429a806d0455406df98f984.tar.gz
bpo-31234: Join threads in tests (#3572)
Call thread.join() on threads to prevent the "dangling threads" warning.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 5d9da0e374..5aea51e8b7 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -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