Commit 754d5ef8 authored by Antoine Pitrou's avatar Antoine Pitrou

Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.

Followup to issue #15489.
parent f2fdd31e
......@@ -658,7 +658,7 @@ class CBytesIOTest(PyBytesIOTest):
@support.cpython_only
def test_sizeof(self):
basesize = support.calcobjsize('P2PP2PP')
basesize = support.calcobjsize('P2nN2Pn')
check = self.check_sizeof
self.assertEqual(object.__sizeof__(io.BytesIO()), basesize)
check(io.BytesIO(), basesize )
......
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