mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
This commit is contained in:
parent
2ec6bb4111
commit
ea94b3b149
57 changed files with 255 additions and 123 deletions
|
@ -8,6 +8,7 @@ from textwrap import dedent
|
|||
from test import support
|
||||
from test.support import cpython_only, has_subprocess_support, SuppressCrashReport
|
||||
from test.support.script_helper import kill_python
|
||||
from test.support.import_helper import import_module
|
||||
|
||||
|
||||
if not has_subprocess_support:
|
||||
|
@ -64,6 +65,7 @@ class TestInteractiveInterpreter(unittest.TestCase):
|
|||
# _PyRefchain_Trace() on memory allocation error.
|
||||
@unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')
|
||||
def test_no_memory(self):
|
||||
import_module("_testcapi")
|
||||
# Issue #30696: Fix the interactive interpreter looping endlessly when
|
||||
# no memory. Check also that the fix does not break the interactive
|
||||
# loop when an exception is raised.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue