mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
Fix the C definition of the sys._debugmallocstats() function: the function has
no parameter
This commit is contained in:
parent
36e96b8716
commit
ed0b87d73c
2 changed files with 4 additions and 1 deletions
|
@ -665,6 +665,9 @@ class SysModuleTest(unittest.TestCase):
|
|||
ret, out, err = assert_python_ok(*args)
|
||||
self.assertIn(b"free PyDictObjects", err)
|
||||
|
||||
# The function has no parameter
|
||||
self.assertRaises(TypeError, sys._debugmallocstats, True)
|
||||
|
||||
@unittest.skipUnless(hasattr(sys, "getallocatedblocks"),
|
||||
"sys.getallocatedblocks unavailable on this build")
|
||||
def test_getallocatedblocks(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue