Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e23c90c

Browse files
Fixed test_sizeof for deque.
1 parent c9bfc13 commit e23c90c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_deque.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,8 @@ class C(object):
744744
@support.cpython_only
745745
def test_sizeof(self):
746746
BLOCKLEN = 64
747-
basesize = support.calcobjsize('2P4nlP')
748-
blocksize = struct.calcsize('2P%dP' % BLOCKLEN)
747+
basesize = support.calcvobjsize('2P4nP')
748+
blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
749749
self.assertEqual(object.__sizeof__(deque()), basesize)
750750
check = self.check_sizeof
751751
check(deque(), basesize + blocksize)

0 commit comments

Comments
 (0)