8000 gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140) · python/cpython@74072a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74072a3

Browse files
authored
< 8000 div class="color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column pt-0">
gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (#119140)
1 parent 0f5e8be commit 74072a3

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'):

0 commit comments

Comments
 (0)
0