summaryrefslogtreecommitdiff
path: root/Lib/test/test_memoryio.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-07-30 13:58:42 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-07-30 13:58:42 +0200
commit754d5ef8da92d71b72be4b129af5011cd4480dd0 (patch)
tree60cc45b5e309fa3647a0b2fe7bf22b93ccd38ed6 /Lib/test/test_memoryio.py
parentf2fdd31e2ba2f5fb371a6ec193ad709815c7b8c8 (diff)
downloadcpython-git-754d5ef8da92d71b72be4b129af5011cd4480dd0.tar.gz
Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.
Followup to issue #15489.
Diffstat (limited to 'Lib/test/test_memoryio.py')
-rw-r--r--Lib/test/test_memoryio.py2
1 files changed, 1 insertions, 1 deletions
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 )