• Martin Panter's avatar
    Issue #26257: Eliminate buffer_tests.py and fix ByteArrayAsStringTest · 86e0d576
    Martin Panter authored
    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.
    86e0d576
test_bytes.py 43.6 KB