]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Aug 2025 10:46:33 +0000 (12:46 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Aug 2025 10:46:33 +0000 (10:46 +0000)
commitcdafa05fd5f2838533ce2fb3cfe40c9de27cf63d
tree104756bdb7ca0980b1cf44d88decf6e20894e7bd
parentd6f7c615c097a78586b068d69ecb7e340591a559
[3.13] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH-138183)

* 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