summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_deque.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-18 10:00:56 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-18 10:00:56 (GMT)
commite23c90c344f8a47ee1a4abf6f23d5d0b09cde22a (patch)
tree1be318406447cb9c047db63099c7e4d448cbde81 /Lib/test/test_deque.py
parentc9bfc13aa9965dd717ad1f647cdea62f4b2c8112 (diff)
downloadcpython-e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a.zip
cpython-e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a.tar.gz
cpython-e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a.tar.bz2
Fixed test_sizeof for deque.
Diffstat (limited to 'Lib/test/test_deque.py')
-rw-r--r--Lib/test/test_deque.py4
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)