mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #19527: Fixed tests with defined COUNT_ALLOCS.
This commit is contained in:
commit
bae75cf3fe
11 changed files with 29 additions and 6 deletions
|
@ -3,7 +3,8 @@ Tests for the threading module.
|
|||
"""
|
||||
|
||||
import test.support
|
||||
from test.support import verbose, 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue