Commit e23c90c3 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed test_sizeof for deque.

parent c9bfc13a
...@@ -744,8 +744,8 @@ class TestBasic(unittest.TestCase): ...@@ -744,8 +744,8 @@ class TestBasic(unittest.TestCase):
@support.cpython_only @support.cpython_only
def test_sizeof(self): def test_sizeof(self):
BLOCKLEN = 64 BLOCKLEN = 64
basesize = support.calcobjsize('2P4nlP') basesize = support.calcvobjsize('2P4nP')
blocksize = struct.calcsize('2P%dP' % BLOCKLEN) blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
self.assertEqual(object.__sizeof__(deque()), basesize) self.assertEqual(object.__sizeof__(deque()), basesize)
check = self.check_sizeof check = self.check_sizeof
check(deque(), basesize + blocksize) check(deque(), basesize + blocksize)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment