]> granicus.if.org Git - python/commit
Issue #26257: Eliminate buffer_tests.py and fix ByteArrayAsStringTest
authorMartin Panter <vadmium+py@gmail.com>
Wed, 6 Apr 2016 06:37:17 +0000 (06:37 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Wed, 6 Apr 2016 06:37:17 +0000 (06:37 +0000)
commit86e0d5761177ef3fe7b50f7e9f235c70960d7834
tree5514408463df9251de357a2383ed3b753bde59c1
parentbc62af1bbe118aa678cb6fa4ecad40f7250b56de
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. Moved some tests
into a new base class string_tests.NonStringModuleTest, and run them for
bytearray.
Lib/test/buffer_tests.py [deleted file]
Lib/test/string_tests.py
Lib/test/test_bytes.py