Skip to content

Commit 2d6d05a

Browse files
committed
fix
1 parent e9ec9b9 commit 2d6d05a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ def check_bolt_optimized():
870870
# Always return false, if the platform is WASI.
871871
if is_wasi:
872872
return False
873-
return '--enable-bolt' in sysconfig.get_config_var('CONFIG_ARGS')
873+
config_args = sysconfig.get_config_var('CONFIG_ARGS') or ''
874+
return '--enable-bolt' in configs_args
874875

875876

876877
Py_GIL_DISABLED = bool(sysconfig.get_config_var('Py_GIL_DISABLED'))

0 commit comments

Comments
 (0)