mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Fixed test_sizeof for deque.
This commit is contained in:
parent
c9bfc13aa9
commit
e23c90c344
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue