]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 27 Aug 2025 10:24:28 +0000 (13:24 +0300)
committerGitHub <noreply@github.com>
Wed, 27 Aug 2025 10:24:28 +0000 (13:24 +0300)
commit0dbbf61cc2550428ff99daee367364c688031e1a
tree1ee267e4c5ffeab668e10c4543081949f5d56880
parent14a5ad1db177c557f2c433501d591d576954a0ae
gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180)

* Merge existing tests test_repr_str and test_to_str.
* Add more tests for non-printable and non-ASCII bytes.
* Add tests for special escape sequences ('\t\n\r').
* Add tests for slashes.
* Add more tests for quotes.
* Add tests for subclasses.
* Add test for non-ASCII class name.
* Only apply @check_bytes_warnings for str() tests.
Lib/test/test_bytes.py