• Martin Panter's avatar
    Issue #26257: Eliminate buffer_tests.py and fix ByteArrayAsStringTest · 152a19c6
    Martin Panter yazdı
    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.
    152a19c6
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...