This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: decorator function run_with_locale() crashes Python interpreter
Type: crash Stage: resolved
Components: Tests Versions: Python 3.9
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: CharlesFengY, Mark.Shannon
Priority: normal Keywords:

Created on 2021-02-10 09:46 by CharlesFengY, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg386767 - (view) Author: Yang Feng (CharlesFengY) Date: 2021-02-10 09:46
We use run_with_locale() as decorator function, then we recursively call test_float__format__locale in the following example. Python interpreter crashes.
from import run_with_locale

@run_with_locale('LC_NUMERIC', 'en_US.UTF8')
def test_float__format__locale():

System Info: Ubuntu 16.04
Python Version:  Python 3.9.1
msg387919 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2021-03-02 11:52
This behaves correctly (raising on RecursionOverflow) on 3.10a
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87355
2021-03-02 11:54:22Mark.Shannonsetstatus: open -> closed
resolution: duplicate
stage: resolved
2021-03-02 11:52:08Mark.Shannonsetnosy: + Mark.Shannon
messages: + msg387919
2021-02-10 09:46:08CharlesFengYcreate