Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.
Followup to issue #15489.
This commit is contained in:
parent
f2fdd31e2b
commit
754d5ef8da
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue