mirror of https://github.com/python/cpython
[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:
parent
1bb3a9df1b
commit
9c2de86b5b
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue