summaryrefslogtreecommitdiff
path: root/Lib/test/test_types.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-08-25 23:17:42 +0000
committerBenjamin Peterson <benjamin@python.org>2010-08-25 23:17:42 +0000
commit6f3d6a9b2369dd68970bd47e85b27ee624580aaa (patch)
tree1156038e11f1d7c04f57ea525056306107e715ad /Lib/test/test_types.py
parent7c4bf55ffdc9d88795381d5d0fb5481f226a9d57 (diff)
downloadcpython-git-6f3d6a9b2369dd68970bd47e85b27ee624580aaa.tar.gz
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/test/test_types.py')
-rw-r--r--Lib/test/test_types.py5
1 files changed, 5 insertions, 0 deletions
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),