[Python-checkins] cpython (3.5): Fixed test_sizeof for deque.

serhiy.storchaka python-checkins at python.org
Wed May 18 06:01:49 EDT 2016


https://hg.python.org/cpython/rev/1f8d0e38c2c3
changeset:   101427:1f8d0e38c2c3
branch:      3.5
parent:      101422:e6e35ff744fe
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Wed May 18 13:00:56 2016 +0300
summary:
  Fixed test_sizeof for deque.

files:
  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
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -744,8 +744,8 @@
     @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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list