diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-18 10:00:56 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-18 10:00:56 (GMT) |
commit | e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a (patch) | |
tree | 1be318406447cb9c047db63099c7e4d448cbde81 /Lib | |
parent | c9bfc13aa9965dd717ad1f647cdea62f4b2c8112 (diff) | |
download | cpython-e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a.zip cpython-e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a.tar.gz cpython-e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a.tar.bz2 |
Fixed test_sizeof for deque.
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index 7041d17..f525429 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -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) |