classification
Title: decorator function run_with_locale() crashes Python interpreter
Type: crash Stage: resolved
Components: Tests Versions: Python 3.9
process
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 2021-03-02 11:54 by Mark.Shannon. 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 test.support import run_with_locale

@run_with_locale('LC_NUMERIC', 'en_US.UTF8')
def test_float__format__locale():
	test_float__format__locale()
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
History
Date User Action Args
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