]> granicus.if.org Git - python/commitdiff
Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 30 Jul 2012 11:58:42 +0000 (13:58 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 30 Jul 2012 11:58:42 +0000 (13:58 +0200)
Followup to issue #15489.

Lib/test/test_memoryio.py

index 92480989acaa75bc01a595cdcb8a80b97f3f83fa..04ec8e72d91516421a0ae39eb5a792361795dbd5 100644 (file)
@@ -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 )