summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-07-03 19:27:26 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-07-03 19:27:26 (GMT)
commita793037d803abf098d172f686e2b95d27863c54d (patch)
treeb1723194b3e1d1584f16c5a8b811f93c8a34fb1d /Lib/test/test_threading.py
parentaf65872da2b679e4b1876412aab6a731f82a469f (diff)
downloadcpython-a793037d803abf098d172f686e2b95d27863c54d.zip
cpython-a793037d803abf098d172f686e2b95d27863c54d.tar.gz
cpython-a793037d803abf098d172f686e2b95d27863c54d.tar.bz2
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index b49a961..1c9c1ea 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -3,7 +3,8 @@ Tests for the threading module.
"""
import test.support
-from test.support import verbose, strip_python_stderr, import_module, cpython_only
+from test.support import (verbose, import_module, cpython_only,
+ requires_type_collecting)
from test.support.script_helper import assert_python_ok, assert_python_failure
import random
@@ -987,6 +988,7 @@ class ThreadingExceptionTests(BaseTestCase):
self.assertIn("ZeroDivisionError", err)
self.assertNotIn("Unhandled exception", err)
+ @requires_type_collecting
def test_print_exception_stderr_is_none_1(self):
script = r"""if True:
import sys