gh-112535: Add test on _Py_ThreadId() (#112709)

Add also test.support.Py_GIL_DISABLED constant.
This commit is contained in:
Victor Stinner 2023-12-04 23:40:06 +01:00 • committed by GitHub
parent a8ce149628
commit c5fa8a54db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 75 additions and 8 deletions

View file

@ -796,7 +796,8 @@ def check_cflags_pgo():
return any(option in cflags_nodist for option in pgo_options)
if sysconfig.get_config_var('Py_GIL_DISABLED'):
Py_GIL_DISABLED = bool(sysconfig.get_config_var('Py_GIL_DISABLED'))
if Py_GIL_DISABLED:
_header = 'PHBBInP'
else:
_header = 'nP'