From e995d0543ec38b4d59207bcc9ba613dd180c4a97 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 9 Dec 2024 09:53:50 +0100 Subject: [PATCH] fix test that held reference to abstract spec --- lib/spack/spack/test/variant.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/spack/spack/test/variant.py b/lib/spack/spack/test/variant.py index 3acc27a5051..1d45ca57d78 100644 --- a/lib/spack/spack/test/variant.py +++ b/lib/spack/spack/test/variant.py @@ -688,12 +688,11 @@ def test_str(self) -> None: def test_concrete(self, mock_packages, config) -> None: spec = Spec("pkg-a") - vm = VariantMap(spec) - assert not vm.concrete + assert not VariantMap(spec).concrete # concrete if associated spec is concrete spec = spack.concretize.concretized(spec) - assert vm.concrete + assert VariantMap(spec).concrete # concrete if all variants are present (even if spec not concrete) spec._mark_concrete(False)