flag_mixing.py: add missing import (#48579)

This commit is contained in:
Harmen Stoppels 2025-01-15 10:48:34 +01:00 committed by GitHub
parent e7c591a8b8
commit 976f1c2198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,7 @@
import spack.environment as ev
import spack.paths
import spack.repo
import spack.spec
import spack.util.spack_yaml as syaml
"""
@ -100,8 +101,8 @@ def test_pkg_flags_from_compiler_and_none(concretize_scope, mock_packages):
conf_str = _compiler_cfg_one_entry_with_cflags("-Wall")
update_concretize_scope(conf_str, "compilers")
s1 = Spec("cmake%gcc@12.100.100")
s2 = Spec("cmake-client^cmake%clang")
s1 = spack.spec.Spec("cmake%gcc@12.100.100")
s2 = spack.spec.Spec("cmake-client^cmake%clang")
concrete = dict(spack.concretize.concretize_together([(s1, None), (s2, None)]))
assert concrete[s1].compiler_flags["cflags"] == ["-Wall"]