Issue #18874: Implement the PEP 454 (tracemalloc)

This commit is contained in:
Victor Stinner 2013-11-23 12:27:24 +01:00
parent 0fb6072fad
commit ed3b0bca3e
17 changed files with 4024 additions and 15 deletions

View file

@ -158,7 +158,7 @@ class SubinterpreterTest(unittest.TestCase):
atexit.register(f)
del atexit
"""
ret = _testcapi.run_in_subinterp(code)
ret = support.run_in_subinterp(code)
self.assertEqual(ret, 0)
self.assertEqual(atexit._ncallbacks(), n)
@ -173,7 +173,7 @@ class SubinterpreterTest(unittest.TestCase):
atexit.register(f)
atexit.__atexit = atexit
"""
ret = _testcapi.run_in_subinterp(code)
ret = support.run_in_subinterp(code)
self.assertEqual(ret, 0)
self.assertEqual(atexit._ncallbacks(), n)