mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #20532: Tests which use _testcapi now are marked as CPython only.
This commit is contained in:
commit
f28ba369dd
29 changed files with 284 additions and 118 deletions
|
@ -832,6 +832,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
self.assertIn("maximum recursion depth exceeded", str(v))
|
||||
|
||||
|
||||
@cpython_only
|
||||
def test_MemoryError(self):
|
||||
# PyErr_NoMemory always raises the same exception instance.
|
||||
# Check that the traceback is not doubled.
|
||||
|
@ -890,6 +891,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
self.assertEqual(error5.a, 1)
|
||||
self.assertEqual(error5.__doc__, "")
|
||||
|
||||
@cpython_only
|
||||
def test_memory_error_cleanup(self):
|
||||
# Issue #5437: preallocated MemoryError instances should not keep
|
||||
# traceback objects alive.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue