def test_conflicting_spec_constraints(self): mpileaks = Spec('mpileaks ^mpich ^callpath ^dyninst ^libelf ^libdwarf') # Normalize then add conflicting constraints to the DAG (this is an # extremely unlikely scenario, but we test for it anyway) mpileaks.normalize() mpileaks._dependencies['mpich'].spec = Spec('[email protected]') mpileaks._dependencies['callpath']. \ spec._dependencies['mpich'].spec = Spec('[email protected]') with pytest.raises(spack.spec.InconsistentSpecError): mpileaks.flat_dependencies(copy=False)