Skip to content

[3.10] gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)#91943

Merged
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-a568585-3.10
Apr 26, 2022
Merged

[3.10] gh-91916: Fix test_runpy on non-UTF-8 locale (GH-91920)#91943
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-a568585-3.10

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

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 a568585)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

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 a568585)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 79712c9 into python:3.10 Apr 26, 2022
@miss-islington miss-islington deleted the backport-a568585-3.10 branch April 26, 2022 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants