Issue #19527: Fixed tests with defined COUNT_ALLOCS.

This commit is contained in:
Serhiy Storchaka 2016-07-03 22:27:26 +03:00
parent af65872da2
commit a793037d80
10 changed files with 26 additions and 6 deletions

View file

@ -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