summaryrefslogtreecommitdiff
path: root/Lib/test/test_types.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-08-25 23:13:17 +0000
committerBenjamin Peterson <benjamin@python.org>2010-08-25 23:13:17 +0000
commit0e10206f2cc7b3fac5ad30cd45583c8f1a8a6126 (patch)
tree51769797eedbf38cd6b09a5aaaa730ad751d57bb /Lib/test/test_types.py
parentdc078de4931b309e39498c3fd5e521cf084a5d45 (diff)
downloadcpython-git-0e10206f2cc7b3fac5ad30cd45583c8f1a8a6126.tar.gz
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 d82c84607b..d16dbba173 100644
--- a/Lib/test/test_types.py
+++ b/Lib/test/test_types.py
@@ -550,6 +550,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():
run_unittest(TypesTests)