Kaydet (Commit) 6546d7ca authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Fixed test_sizeof for deque.

üst 0825e633
......@@ -523,8 +523,8 @@ class TestBasic(unittest.TestCase):
@test_support.cpython_only
def test_sizeof(self):
BLOCKLEN = 62
basesize = test_support.calcobjsize('2P4PlP')
blocksize = struct.calcsize('2P%dP' % BLOCKLEN)
basesize = test_support.calcobjsize('2P3PlPP')
blocksize = struct.calcsize('%dP2P' % BLOCKLEN)
self.assertEqual(object.__sizeof__(deque()), basesize)
check = self.check_sizeof
check(deque(), basesize + blocksize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment