diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-30 11:58:42 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-07-30 11:58:42 (GMT) |
commit | 754d5ef8da92d71b72be4b129af5011cd4480dd0 (patch) | |
tree | 60cc45b5e309fa3647a0b2fe7bf22b93ccd38ed6 /Lib | |
parent | f2fdd31e2ba2f5fb371a6ec193ad709815c7b8c8 (diff) | |
download | cpython-754d5ef8da92d71b72be4b129af5011cd4480dd0.zip cpython-754d5ef8da92d71b72be4b129af5011cd4480dd0.tar.gz cpython-754d5ef8da92d71b72be4b129af5011cd4480dd0.tar.bz2 |
Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.
Followup to issue #15489.
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index 9248098..04ec8e7 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 ) |