Skip to content

Commit

Permalink
test: don't modify build_frontend_env, as it appears to be global
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldmccarthy committed Apr 14, 2022
1 parent bef6a27 commit 73c5b96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_0_basic.py
Expand Up @@ -67,11 +67,13 @@ def test_allow_empty(tmp_path, build_frontend_env):

# Sanity check - --allow-empty should cause a no-op build to complete
# without error
build_frontend_env["CIBW_BUILD"] = "BUILD_NOTHING_AT_ALL"

# build the wheels
actual_wheels = utils.cibuildwheel_run(
project_dir, add_env=build_frontend_env, add_args=["--allow-empty"]
project_dir,
add_env={
"CIBW_BUILD": "BUILD_NOTHING_AT_ALL",
**build_frontend_env
},
add_args=["--allow-empty"]
)

# check that nothing was built
Expand Down

0 comments on commit 73c5b96

Please sign in to comment.