[New-bugs-announce] [issue7625] bytearray needs more tests for "b.some_method()[0] is not b"
Florent Xicluna
report at bugs.python.org
Sun Jan 3 21:04:29 CET 2010
New submission from Florent Xicluna <laxyf at yahoo.fr>:
There's not enough tests to verify such cases:
- b.split()[0] is not b
- b.rsplit()[0] is not b
- b.splitlines()[0] is not b
- b.partition('.')[0] is not b
- b.rpartition('.')[0] is not b
- (other ?)
However similar tests exist in Lib/test/test_bytes:
* ByteArrayTest.test_copied()
-> some tests for ('replace', 'translate')
* ByteArrayTest.test_partition_bytearray_doesnt_share_nullstring
-> some tests for ('partition', 'rpartition')
* BytearrayPEP3137Test.test_returns_new_copy()
-> some tests for ('zfill', 'rjust', 'ljust', 'center')
----------
components: Tests
messages: 97176
nosy: flox
priority: low
severity: normal
stage: needs patch
status: open
title: bytearray needs more tests for "b.some_method()[0] is not b"
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7625>
_______________________________________
More information about the New-bugs-announce
mailing list