@@ -446,14 +446,14 @@ def test_skbuild_env_negative_bool(
446446
447447@pytest .mark .parametrize ("foo" , ["true" , "false" ])
448448@pytest .mark .parametrize ("bar" , ["true" , "false" ])
449- @pytest .mark .parametrize ("any " , [True , False ])
449+ @pytest .mark .parametrize ("use_any " , [True , False ])
450450def test_skbuild_env_bool_all_any (
451- foo : str , bar : str , any : bool , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
451+ foo : str , bar : str , use_any : bool , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
452452):
453453 monkeypatch .setenv ("FOO" , foo )
454454 monkeypatch .setenv ("BAR" , bar )
455455
456- any_str = ".any" if any else ""
456+ any_str = ".any" if use_any else ""
457457 pyproject_toml = tmp_path / "pyproject.toml"
458458 pyproject_toml .write_text (
459459 dedent (
@@ -470,7 +470,9 @@ def test_skbuild_env_bool_all_any(
470470 settings_reader = SettingsReader .from_file (pyproject_toml )
471471 settings = settings_reader .settings
472472
473- if (foo == "true" and bar == "true" ) or (any and (foo == "true" or bar == "true" )):
473+ if (foo == "true" and bar == "true" ) or (
474+ use_any and (foo == "true" or bar == "true" )
475+ ):
474476 assert settings .sdist .cmake
475477 else :
476478 assert not settings .sdist .cmake
0 commit comments