diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-18 13:01:19 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-18 13:01:19 +0300 |
commit | b6686fe0a03efbf1e8be3d875b515b7307e9b168 (patch) | |
tree | a157d1c3a12667e1d9a4c97f713af3d9d39e92b8 /Lib/test/test_deque.py | |
parent | 9ef6b7fbde1fb09a0b4f548880e4160926c39c0f (diff) | |
parent | e23c90c344f8a47ee1a4abf6f23d5d0b09cde22a (diff) | |
download | cpython-git-b6686fe0a03efbf1e8be3d875b515b7307e9b168.tar.gz |
Fixed test_sizeof for deque.
Diffstat (limited to 'Lib/test/test_deque.py')
-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 6dbea495fa..4fd0cc7de5 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -755,8 +755,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) |