mirror of https://github.com/python/cpython
gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140)
This commit is contained in:
parent
0f5e8bed63
commit
74072a3ffc
|
@ -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