summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-22 19:13:34 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-22 19:13:34 (GMT)
commit5f6213be2d5890d7bc3ba62db58ac1ce0215aaaa (patch)
treee818110e6015c9666cac9d1d3107ca656719811a /Lib
parentf7338f65fb8bdb85c52dc54d06d003a82a06bbb3 (diff)
parent49526f48fc73d3ccdf09d466ed2d39a30e4df9b9 (diff)
downloadcpython-5f6213be2d5890d7bc3ba62db58ac1ce0215aaaa.zip
cpython-5f6213be2d5890d7bc3ba62db58ac1ce0215aaaa.tar.gz
cpython-5f6213be2d5890d7bc3ba62db58ac1ce0215aaaa.tar.bz2
Merge
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_sys.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 796a1c5..9a6dd5b 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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):