]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed test_sizeof for deque.
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 May 2016 10:00:48 +0000 (13:00 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 18 May 2016 10:00:48 +0000 (13:00 +0300)
Lib/test/test_deque.py

index b4efa65209d6134dae5ddcb2c1116a1833bf38ed..3e88168d52a154b8197e7ad35d1eb7d58f068ded 100644 (file)
@@ -523,8 +523,8 @@ class TestBasic(unittest.TestCase):
     @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)