diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-06 06:37:17 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-06 06:37:17 (GMT) |
commit | 152a19c6bd59b772660c8af050248a196bb6a848 (patch) | |
tree | 001af34753cc3f248610d31ca9c9d45011cdfcfd /Parser | |
parent | b0660582cc9260022053c83dcfddd47891700147 (diff) | |
download | cpython-152a19c6bd59b772660c8af050248a196bb6a848.zip cpython-152a19c6bd59b772660c8af050248a196bb6a848.tar.gz cpython-152a19c6bd59b772660c8af050248a196bb6a848.tar.bz2 |
Issue #26257: Eliminate buffer_tests.py and fix ByteArrayAsStringTest
ByteArrayAsStringTest.fixtype() was converting test data to bytes, not byte-
array, therefore many of the test cases inherited in this class were not
actually being run on the bytearray type.
The tests in buffer_tests.py were redundant with methods in string_tests
.MixinStrUnicodeUserStringTest and string_tests.CommonTest. These methods are
now moved into string_tests.BaseTest, where they will also get run for bytes
and bytearray.
This change also moves test_additional_split(), test_additional_rsplit(), and
test_strip() from CommonTest to BaseTest, meaning these tests are now run for
bytes and bytearray. I plan to eliminate redundancies with existing tests in
test_bytes.py soon.
Diffstat (limited to 'Parser')
0 files changed, 0 insertions, 0 deletions