[Python-checkins] r63595 - python/branches/okkoto-sizeof/Lib/test/test_sys.py

robert.schuppenies python-checkins at python.org
Sat May 24 22:06:59 CEST 2008


Author: robert.schuppenies
Date: Sat May 24 22:06:58 2008
New Revision: 63595

Log:
added test for larger dictionary

Modified:
   python/branches/okkoto-sizeof/Lib/test/test_sys.py

Modified: python/branches/okkoto-sizeof/Lib/test/test_sys.py
==============================================================================
--- python/branches/okkoto-sizeof/Lib/test/test_sys.py	(original)
+++ python/branches/okkoto-sizeof/Lib/test/test_sys.py	Sat May 24 22:06:58 2008
@@ -515,6 +515,8 @@
         p = self.p
         # dict
         self.check_sizeof({}, 3*l + 3*p + 8*(l + 2*p))
+        longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8}
+        self.check_sizeof(longdict, 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p))
 
 
 def test_main():


More information about the Python-checkins mailing list