Skip to content

Commit

Permalink
test: build_frontend_env fixture not required for --allow-empy test. …
Browse files Browse the repository at this point in the history
…Small

style tweak
  • Loading branch information
pauldmccarthy committed Apr 19, 2022
1 parent baf3ead commit abedb68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/test_0_basic.py
Expand Up @@ -61,15 +61,15 @@ 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)

# Sanity check - --allow-empty should cause a no-op build to complete
# 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"],
)

Expand Down
4 changes: 2 additions & 2 deletions test/utils.py
Expand Up @@ -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,
Expand Down

0 comments on commit abedb68

Please sign in to comment.