Visitar URL original
[3.13] gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140) by miss-islington · Pull Request #119143 · python/cpython · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140)
(cherry picked from commit 74072a3)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
vstinner authored and miss-islington committed May 18, 2024
commit b450d53a6147526716318bb2016000673d3d175a
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