From: Serhiy Storchaka Date: Wed, 18 May 2016 10:00:48 +0000 (+0300) Subject: Fixed test_sizeof for deque. X-Git-Tag: v2.7.12rc1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6546d7cac49c6c1e80115f4b64cbfd5ae8c68302;p=thirdparty%2FPython%2Fcpython.git Fixed test_sizeof for deque. --- diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py index b4efa65209d6..3e88168d52a1 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -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)