From 945d4f66352109a0eaf383d85f851295ee058fa0 Mon Sep 17 00:00:00 2001 From: Paul McCarthy Date: Thu, 14 Apr 2022 10:21:21 +0100 Subject: [PATCH] test: don't modify build_frontend_env, as it appears to be global --- test/test_0_basic.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/test_0_basic.py b/test/test_0_basic.py index 720bf42f..9080a30d 100644 --- a/test/test_0_basic.py +++ b/test/test_0_basic.py @@ -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