]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 26 Apr 2022 05:00:47 +0000 (08:00 +0300)
committerGitHub <noreply@github.com>
Tue, 26 Apr 2022 05:00:47 +0000 (08:00 +0300)
commita568585069174cec35ce26cdf4d4862c634d9f6d
tree1e6c71dad85369ff21e2eb205a643fb0d21542db
parentf41c16bf512778fca4bfabca887c4c303cc21896
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.
Lib/test/test_runpy.py