mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.
Followup to issue #15489.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user