gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140)

This commit is contained in:
Victor Stinner 2024-05-18 09:24:22 -04:00 committed by GitHub
parent 0f5e8bed63
commit 74072a3ffc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 3 deletions

View File

@ -105,9 +105,13 @@ def collect_sys(info_add):
)
copy_attributes(info_add, sys, 'sys.%s', attributes)
call_func(info_add, 'sys.androidapilevel', sys, 'getandroidapilevel')
call_func(info_add, 'sys.windowsversion', sys, 'getwindowsversion')
call_func(info_add, 'sys.getrecursionlimit', sys, 'getrecursionlimit')
for func in (
'_is_gil_enabled',
'getandroidapilevel',
'getrecursionlimit',
'getwindowsversion',
):
call_func(info_add, f'sys.{func}', sys, func)
encoding = sys.getfilesystemencoding()
if hasattr(sys, 'getfilesystemencodeerrors'):