Skip to content

Commit 4c5368c

Browse files
committed
test: use build_mode in test/test_dependency_versions.py tests
1 parent ef267f0 commit 4c5368c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_dependency_versions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_versions_from_constraint_file(constraint_file):
4848

4949

5050
@pytest.mark.parametrize("python_version", ["3.6", "3.8", "3.9"])
51-
def test_pinned_versions(tmp_path, python_version):
51+
def test_pinned_versions(tmp_path, python_version, build_mode):
5252
if utils.platform == "linux":
5353
pytest.skip("linux doesn't pin individual tool versions, it pins manylinux images instead")
5454

@@ -85,6 +85,7 @@ def test_pinned_versions(tmp_path, python_version):
8585
add_env={
8686
"CIBW_BUILD": build_pattern,
8787
"CIBW_ENVIRONMENT": cibw_environment_option,
88+
**build_mode,
8889
},
8990
)
9091

@@ -107,7 +108,7 @@ def test_pinned_versions(tmp_path, python_version):
107108
assert set(actual_wheels) == set(expected_wheels)
108109

109110

110-
def test_dependency_constraints_file(tmp_path):
111+
def test_dependency_constraints_file(tmp_path, build_mode):
111112
if utils.platform == "linux":
112113
pytest.skip("linux doesn't pin individual tool versions, it pins manylinux images instead")
113114

@@ -150,6 +151,7 @@ def test_dependency_constraints_file(tmp_path):
150151
add_env={
151152
"CIBW_ENVIRONMENT": cibw_environment_option,
152153
"CIBW_DEPENDENCY_VERSIONS": str(constraints_file),
154+
**build_mode,
153155
},
154156
)
155157

0 commit comments

Comments
 (0)