Spec.__contains__: traverse only lin/run + direct build
This commit is contained in:
parent
7ee73ed1b6
commit
67011c8e88
@ -1185,7 +1185,8 @@ def test_conditional_provides_or_depends_on(self):
|
||||
s = Spec("conditional-provider +disable-v1").concretized()
|
||||
assert "v1-provider" in s
|
||||
assert s["v1"].name == "v1-provider"
|
||||
assert s["v2"].name == "conditional-provider"
|
||||
assert s.package.provides("v2")
|
||||
assert "v2" not in s
|
||||
|
||||
@pytest.mark.regression("20079")
|
||||
@pytest.mark.parametrize(
|
||||
|
@ -257,7 +257,7 @@ def test_external_mpi(self):
|
||||
# make sure this doesn't give us an external first.
|
||||
spec = Spec("mpi")
|
||||
spec.concretize()
|
||||
assert not spec["mpi"].external
|
||||
assert not spec.external and spec.package.provides("mpi")
|
||||
|
||||
# load config
|
||||
conf = syaml.load_config(
|
||||
@ -293,7 +293,7 @@ def mock_module(cmd, module):
|
||||
|
||||
spec = Spec("mpi")
|
||||
spec.concretize()
|
||||
assert not spec["mpi"].external
|
||||
assert not spec.external and spec.package.provides("mpi")
|
||||
|
||||
# load config
|
||||
conf = syaml.load_config(
|
||||
|
Loading…
Reference in New Issue
Block a user