summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-12-19 16:16:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-12-19 16:16:42 (GMT)
commited0b87d73c59f0cd1b02cdf5404898f9ca03cdfc (patch)
tree7f73b945bf325ea6ee5f4217594e5fb9c2b25846 /Lib/test/test_sys.py
parent36e96b87165c4050eea5aa70d9538d237c874b33 (diff)
downloadcpython-ed0b87d73c59f0cd1b02cdf5404898f9ca03cdfc.zip
cpython-ed0b87d73c59f0cd1b02cdf5404898f9ca03cdfc.tar.gz
cpython-ed0b87d73c59f0cd1b02cdf5404898f9ca03cdfc.tar.bz2
Fix the C definition of the sys._debugmallocstats() function: the function has
no parameter
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 177b92e..7be8c9c 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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):