mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -205,7 +205,7 @@ class SubinterpreterTest(unittest.TestCase):
|
|||
pickle.dump(id(builtins), f)
|
||||
""".format(w)
|
||||
with open(r, "rb") as f:
|
||||
ret = _testcapi.run_in_subinterp(code)
|
||||
ret = support.run_in_subinterp(code)
|
||||
self.assertEqual(ret, 0)
|
||||
self.assertNotEqual(pickle.load(f), id(sys.modules))
|
||||
self.assertNotEqual(pickle.load(f), id(builtins))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue