[Python-checkins] cpython (2.7): Fixed test_sizeof for deque.

serhiy.storchaka python-checkins at python.org
Wed May 18 06:01:49 EDT 2016


https://hg.python.org/cpython/rev/18c5e4d82d83
changeset:   101426:18c5e4d82d83
branch:      2.7
parent:      101391:9e1c859562bb
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed May 18 13:00:48 2016 +0300
summary:
  Fixed test_sizeof for deque.

files:
  Lib/test/test_deque.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -523,8 +523,8 @@
     @test_support.cpython_only
     def test_sizeof(self):
         BLOCKLEN = 62
-        basesize = test_support.calcobjsize('2P4PlP')
-        blocksize = struct.calcsize('2P%dP' % BLOCKLEN)
+        basesize = test_support.calcobjsize('2P3PlPP')
+        blocksize = struct.calcsize('%dP2P' % BLOCKLEN)
         self.assertEqual(object.__sizeof__(deque()), basesize)
         check = self.check_sizeof
         check(deque(), basesize + blocksize)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list