diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-08-25 23:13:17 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-08-25 23:13:17 +0000 |
commit | f17ef6a9fef81af89357db6d6dbd8d1d8b9666d0 (patch) | |
tree | b034ddf6b840d86ec26773aa9f8119b1349eebb8 /Lib/test/test_types.py | |
parent | f8646d6a522585bef42cf7c68f160c53c8b30c8b (diff) | |
download | cpython-f17ef6a9fef81af89357db6d6dbd8d1d8b9666d0.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.py | 5 |
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) |