mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #14785: Add sys._debugmallocstats() to help debug low-level memory allocation issues
This commit is contained in:
parent
69cf913ba1
commit
49526f48fc
24 changed files with 217 additions and 35 deletions
|
@ -603,6 +603,12 @@ class SysModuleTest(unittest.TestCase):
|
|||
self.assertEqual(sys.implementation.name,
|
||||
sys.implementation.name.lower())
|
||||
|
||||
def test_debugmallocstats(self):
|
||||
# Test sys._debugmallocstats()
|
||||
from test.script_helper import assert_python_ok
|
||||
args = ['-c', 'import sys; sys._debugmallocstats()']
|
||||
ret, out, err = assert_python_ok(*args)
|
||||
self.assertIn(b"free PyDictObjects", err)
|
||||
|
||||
class SizeofTest(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue