]> granicus.if.org Git - python/commitdiff
Fixed test_sizeof for deque.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 May 2016 10:00:56 +0000 (13:00 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 May 2016 10:00:56 +0000 (13:00 +0300)
Lib/test/test_deque.py

index 7041d1725e63aac829049bc3fe77630e87be204a..f525429a171ffb4512b1781b1f40547a3e6c0f6d 100644 (file)
@@ -744,8 +744,8 @@ class TestBasic(unittest.TestCase):
     @support.cpython_only
     def test_sizeof(self):
         BLOCKLEN = 64
-        basesize = support.calcobjsize('2P4nlP')
-        blocksize = struct.calcsize('2P%dP' % BLOCKLEN)
+        basesize = support.calcvobjsize('2P4nP')
+        blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
         self.assertEqual(object.__sizeof__(deque()), basesize)
         check = self.check_sizeof
         check(deque(), basesize + blocksize)