From: Antoine Pitrou Date: Mon, 30 Jul 2012 11:58:42 +0000 (+0200) Subject: Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t. X-Git-Tag: v3.3.0b2~86^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=754d5ef8da92d71b72be4b129af5011cd4480dd0;p=python Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t. Followup to issue #15489. --- diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py index 92480989ac..04ec8e72d9 100644 --- a/Lib/test/test_memoryio.py +++ b/Lib/test/test_memoryio.py @@ -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 )