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

Followup to issue #15489.
This commit is contained in:
Antoine Pitrou 2012-07-30 13:58:42 +02:00
parent f2fdd31e2b
commit 754d5ef8da
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ class CBytesIOTest(PyBytesIOTest):
@support.cpython_only @support.cpython_only
def test_sizeof(self): def test_sizeof(self):
basesize = support.calcobjsize('P2PP2PP') basesize = support.calcobjsize('P2nN2Pn')
check = self.check_sizeof check = self.check_sizeof
self.assertEqual(object.__sizeof__(io.BytesIO()), basesize) self.assertEqual(object.__sizeof__(io.BytesIO()), basesize)
check(io.BytesIO(), basesize ) check(io.BytesIO(), basesize )