]> 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:45:24 +0000 (22:45 -0700)
committerGitHub <noreply@github.com>
Tue, 26 Apr 2022 05:45:24 +0000 (22:45 -0700)
commit653a66668df818aafb76f968247cb02d2f9cd405
treeca85f0876f3b575836772c55c725c1dafb9c9359
parent38be31e61e092b07243dad1622ef61177c12ed55
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