Commit 43cf17d4 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

Port test_exceptions to Python 3.10 (GH-4042)

The `test.support` has been split into sub-modules. Adapt `test_exceptions` (originally coped from CPython) for these changes.
parent 3e470fcc
...@@ -13,11 +13,16 @@ import pickle ...@@ -13,11 +13,16 @@ import pickle
import weakref import weakref
import errno import errno
from test.support import (TESTFN, captured_stderr, check_impl_detail, from test.support import (captured_stderr, check_impl_detail, gc_collect,
check_warnings, gc_collect,
# no_tracing, cpython_only, # no_tracing, cpython_only,
unlink, import_module, script_helper, script_helper, SuppressCrashReport)
SuppressCrashReport) try:
from test.support.os_helper import TESTFN, unlink
from test.support.warnings_helper import check_warnings
from test.support.import_helper import import_module
except ImportError:
# Python 3.9 and older
from test.support import check_warnings
no_tracing = unittest.skip("For nested functions, Cython generates a C call without recursion checks.") no_tracing = unittest.skip("For nested functions, Cython generates a C call without recursion checks.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment