[3.13] gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140) (#119143)

gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140)
(cherry picked from commit 74072a3ffc)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Miss Islington (bot) 2024-05-18 15:46:21 +02:00 committed by GitHub
parent 1bb3a9df1b
commit 9c2de86b5b
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'):