8000 [3.13] gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-11… · python/cpython@9c2de86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c2de86

Browse files
[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 74072a3) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 1bb3a9d commit 9c2de86

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Lib/test/pythoninfo.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,13 @@ def collect_sys(info_add):
105105
)
106106
copy_attributes(info_add, sys, 'sys.%s', attributes)
107107

108-
call_func(info_add, 'sys.androidapilevel', sys, 'getandroidapilevel')
109-
call_func(info_add, 'sys.windowsversion', sys, 'getwindowsversion')
110-
call_func(info_add, 'sys.getrecursionlimit', sys, 'getrecursionlimit')
108+
for func in (
109+
'_is_gil_enabled',
110+
'getandroidapilevel',
111+
'getrecursionlimit',
112+
'getwindowsversion',
113+
):
114+
call_func(info_add, f'sys.{func}', sys, func)
111115

112116
encoding = sys.getfilesystemencoding()
113117
if hasattr(sys, 'getfilesystemencodeerrors'):
< 32D3 /code>

0 commit comments

Comments
 (0)
0