Skip to content

Commit abedb68

Browse files
committed
test: build_frontend_env fixture not required for --allow-empy test. Small
style tweak
1 parent baf3ead commit abedb68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/test_0_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ def test_build_identifiers(tmp_path):
6161
), f"{expected_wheels} vs {build_identifiers}"
6262

6363

64-
def test_allow_empty(tmp_path, build_frontend_env):
64+
def test_allow_empty(tmp_path):
6565
project_dir = tmp_path / "project"
6666
basic_project.generate(project_dir)
6767

6868
# Sanity check - --allow-empty should cause a no-op build to complete
6969
# without error
7070
actual_wheels = utils.cibuildwheel_run(
7171
project_dir,
72-
add_env={"CIBW_BUILD": "BUILD_NOTHING_AT_ALL", **build_frontend_env},
72+
add_env={"CIBW_BUILD": "BUILD_NOTHING_AT_ALL"},
7373
add_args=["--allow-empty"],
7474
)
7575

test/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def cibuildwheel_run(
8383
"--output-dir",
8484
str(output_dir or tmp_output_dir),
8585
str(package_dir),
86-
]
87-
+ add_args,
86+
*add_args,
87+
],
8888
env=env,
8989
cwd=project_path,
9090
check=True,

0 commit comments

Comments
 (0)