diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-04-06 06:37:17 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-04-06 06:37:17 +0000 |
commit | d7f5bb76af438d55acc5fc3bc10d9065c83ba48a (patch) | |
tree | dca70a8b700545a68727934f0328ec11695f816a /Python/errors.c | |
parent | 3e8df0179bf861be955190d1939e369af7d7d20b (diff) | |
download | cpython-d7f5bb76af438d55acc5fc3bc10d9065c83ba48a.tar.gz |
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 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions