test: build_frontend_env fixture not required for --allow-empy test. Small

style tweak
This commit is contained in:
Paul McCarthy
2022-04-19 16:02:23 +01:00
parent baf3ead650
commit abedb68783
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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"],
)
+2 -2
View File
@@ -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,