summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorRobert Schuppenies <okkotonushi@googlemail.com>2008-06-13 13:29:37 +0000
committerRobert Schuppenies <okkotonushi@googlemail.com>2008-06-13 13:29:37 +0000
commit73e9ffc811f71172ea17ea96cdc4bb1b74b58b47 (patch)
tree373044cb89757dd8167b534719a35225f32cf9af /Lib/test
parent60c0be3acd5ba11392bb4dac4baf97aad1eebde3 (diff)
downloadcpython-git-73e9ffc811f71172ea17ea96cdc4bb1b74b58b47.tar.gz
Fixed: sys.getsizeof does not take the actual length of the tuples into account.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sys.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 45633742fd..20628385d7 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -567,6 +567,9 @@ class SizeofTest(unittest.TestCase):
# string
self.check_sizeof('', h + l + self.align(i + 1))
self.check_sizeof('abc', h + l + self.align(i + 1) + 3)
+ # tuple
+ self.check_sizeof((), h)
+ self.check_sizeof((1,2,3), h + 3*p)
def test_main():