diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-08-25 23:17:42 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-08-25 23:17:42 (GMT) |
commit | 6f3d6a9b2369dd68970bd47e85b27ee624580aaa (patch) | |
tree | 1156038e11f1d7c04f57ea525056306107e715ad /Lib | |
parent | 7c4bf55ffdc9d88795381d5d0fb5481f226a9d57 (diff) | |
download | cpython-6f3d6a9b2369dd68970bd47e85b27ee624580aaa.zip cpython-6f3d6a9b2369dd68970bd47e85b27ee624580aaa.tar.gz cpython-6f3d6a9b2369dd68970bd47e85b27ee624580aaa.tar.bz2 |
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
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_types.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 21e8b96..60f6d2f 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), |