]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 8 Oct 2025 12:27:28 +0000 (14:27 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Oct 2025 12:27:28 +0000 (14:27 +0200)
commitebbce6b0f9d59b817ea019ad83b12f26cb301a1a
tree806aab66219c859f2f3833c71af9a5b2ad917f77
parentd424344ce9e7f4a5d7ed42f660a33769e5606f9a
[3.14] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH-138182)

* 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.
(cherry picked from commit 0dbbf61cc2550428ff99daee367364c688031e1a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_bytes.py