Skip to content

Commit

Permalink
gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed May 18, 2024
1 parent 0f5e8be commit 74072a3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Lib/test/pythoninfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 74072a3

Please sign in to comment.