From abedb687838e7ea778ae03294ecb8698a21a3763 Mon Sep 17 00:00:00 2001 From: Paul McCarthy Date: Tue, 19 Apr 2022 16:02:23 +0100 Subject: [PATCH] test: build_frontend_env fixture not required for --allow-empy test. Small style tweak --- test/test_0_basic.py | 4 ++-- test/utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_0_basic.py b/test/test_0_basic.py index 733c65468..2d2e8d97f 100644 --- a/test/test_0_basic.py +++ b/test/test_0_basic.py @@ -61,7 +61,7 @@ def test_build_identifiers(tmp_path): ), f"{expected_wheels} vs {build_identifiers}" -def test_allow_empty(tmp_path, build_frontend_env): +def test_allow_empty(tmp_path): project_dir = tmp_path / "project" basic_project.generate(project_dir) @@ -69,7 +69,7 @@ def test_allow_empty(tmp_path, build_frontend_env): # without error actual_wheels = utils.cibuildwheel_run( project_dir, - add_env={"CIBW_BUILD": "BUILD_NOTHING_AT_ALL", **build_frontend_env}, + add_env={"CIBW_BUILD": "BUILD_NOTHING_AT_ALL"}, add_args=["--allow-empty"], ) diff --git a/test/utils.py b/test/utils.py index 648794bdc..86df69a40 100644 --- a/test/utils.py +++ b/test/utils.py @@ -83,8 +83,8 @@ def cibuildwheel_run( "--output-dir", str(output_dir or tmp_output_dir), str(package_dir), - ] - + add_args, + *add_args, + ], env=env, cwd=project_path, check=True,