cpython: Better test for BytesIO.__sizeof__, now that the struct module supports

http://hg.python.org/cpython/rev/e77c117ab024 changeset: 78334:e77c117ab024 user: Antoine Pitrou <solipsis@pitrou.net> date: Mon Jul 30 13:58:42 2012 +0200 summary: Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t. Followup to issue #15489. files: Lib/test/test_memoryio.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py --- a/Lib/test/test_memoryio.py +++ b/Lib/test/test_memoryio.py @@ -658,7 +658,7 @@ @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 ) -- Repository URL: http://hg.python.org/cpython
participants (1)
-
antoine.pitrou