summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi/test_mem.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_capi/test_mem.py')
-rw-r--r--Lib/test/test_capi/test_mem.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_capi/test_mem.py b/Lib/test/test_capi/test_mem.py
index 5270008..72f23b1 100644
--- a/Lib/test/test_capi/test_mem.py
+++ b/Lib/test/test_capi/test_mem.py
@@ -112,6 +112,9 @@ class PyMemDebugTests(unittest.TestCase):
def test_pyobject_freed_is_freed(self):
self.check_pyobject_is_freed('check_pyobject_freed_is_freed')
+ # Python built with Py_TRACE_REFS fail with a fatal error in
+ # _PyRefchain_Trace() on memory allocation error.
+ @unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')
def test_set_nomemory(self):
code = """if 1:
import _testcapi