Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit 017b5a7

Browse files
committed
Improve test_solvers_archspec_with_virtual_package test
1 parent c1e63eb commit 017b5a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_solvers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ def test_solvers_nvcc_with_virtual_package(solver_factory):
169169
def test_solvers_archspec_with_virtual_package(solver_factory):
170170
with suppress_output():
171171
virtual_packages = virtual_package_repodata()
172+
173+
# Not having the fake virtual packages should fail
174+
solver = solver_factory(("conda-forge", "defaults"), "linux-64")
175+
out = solver.solve(["pythia8 8.312"])
176+
assert not out[0], out[1]
177+
178+
# Including the fake virtual packages should succeed
172179
solver = solver_factory(
173180
(virtual_packages, "conda-forge", "defaults"), "linux-64"
174181
)

0 commit comments

Comments
 (0)