From 6f3d6a9b2369dd68970bd47e85b27ee624580aaa Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 25 Aug 2010 23:17:42 +0000 Subject: Merged revisions 84320 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84320 | benjamin.peterson | 2010-08-25 18:13:17 -0500 (Wed, 25 Aug 2010) | 1 line basicsize and itemsize are Py_ssize_t #9688 ........ --- Lib/test/test_types.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/test/test_types.py') diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 21e8b960ee..60f6d2f1e2 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -741,6 +741,11 @@ class TypesTests(unittest.TestCase): for code in 'xXobns': self.assertRaises(ValueError, format, 0, ',' + code) + def test_internal_sizes(self): + self.assertGreater(object.__basicsize__, 0) + self.assertGreater(tuple.__itemsize__, 0) + + def test_main(): with check_py3k_warnings( ("buffer.. not supported", DeprecationWarning), -- cgit v1.2.1