]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 Apr 2022 05:26:47 +0000 (22:26 -0700)
committerGitHub <noreply@github.com>
Tue, 26 Apr 2022 05:26:47 +0000 (22:26 -0700)
commit79712c9d2ec7a338b87d1a8b31a8404191e83823
tree0aed67791551b6b8e51c30cebdcc4ff5d6d7c16d
parent4120bbae4930cfd74649118e0bcc2fb5dd32b1fa
gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)

If use a non-builtin codec, partially implemented in Python
(e.g. ISO-8859-15), a new RecursionError (with empty error message)
can be raised while handle a RecursionError.

Testing for error message was needed to distinguish
a recursion error from arbitrary RuntimeError. After introducing
RecursionError, it became unnecessary.
(cherry picked from commit a568585069174cec35ce26cdf4d4862c634d9f6d)

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