Fix improper type for InvalidDependencyError argument (#30504)
This commit is contained in:
parent
c2afb4b916
commit
27462bc982
@ -1749,7 +1749,7 @@ def setup(self, driver, specs):
|
||||
|
||||
# Fail if we already know an unreachable node is requested
|
||||
for spec in specs:
|
||||
missing_deps = [d for d in spec.traverse()
|
||||
missing_deps = [str(d) for d in spec.traverse()
|
||||
if d.name not in possible and not d.virtual]
|
||||
if missing_deps:
|
||||
raise spack.spec.InvalidDependencyError(spec.name, missing_deps)
|
||||
|
@ -1547,8 +1547,10 @@ def test_stack_yaml_force_remove_from_matrix(tmpdir):
|
||||
def test_stack_concretize_extraneous_deps(tmpdir, config, mock_packages):
|
||||
# FIXME: The new concretizer doesn't handle yet soft
|
||||
# FIXME: constraints for stacks
|
||||
if spack.config.get('config:concretizer') == 'clingo':
|
||||
pytest.skip('Clingo concretizer does not support soft constraints')
|
||||
# FIXME: This now works for statically-determinable invalid deps
|
||||
# FIXME: But it still does not work for dynamically determined invalid deps
|
||||
# if spack.config.get('config:concretizer') == 'clingo':
|
||||
# pytest.skip('Clingo concretizer does not support soft constraints')
|
||||
|
||||
filename = str(tmpdir.join('spack.yaml'))
|
||||
with open(filename, 'w') as f:
|
||||
|
Loading…
Reference in New Issue
Block a user