diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-05 21:12:18 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-05 21:12:18 +0200 |
commit | 5df8a8a1fd6cc6f4469dc7d3994d06e2aea24c52 (patch) | |
tree | 3e56cec37fe9182adb7ae56eacdc68149dfb1981 /Lib/test/test_sys.py | |
parent | dcd01b49329d5596c3ad3254ae9eeabd15f100d2 (diff) | |
download | cpython-git-5df8a8a1fd6cc6f4469dc7d3994d06e2aea24c52.tar.gz |
Issue #19087: Improve bytearray allocation in order to allow cheap popping of data at the front (slice deletion).
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 30eca4a3ec..70b55b2316 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -721,7 +721,7 @@ class SizeofTest(unittest.TestCase): samples = [b'', b'u'*100000] for sample in samples: x = bytearray(sample) - check(x, vsize('inP') + x.__alloc__()) + check(x, vsize('n2Pi') + x.__alloc__()) # bytearray_iterator check(iter(bytearray()), size('nP')) # cell |