mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #18874: Implement the PEP 454 (tracemalloc)
This commit is contained in:
parent
0fb6072fad
commit
ed3b0bca3e
17 changed files with 4024 additions and 15 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue