summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/spec_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/spec_syntax.py')
-rw-r--r--lib/spack/spack/test/spec_syntax.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/test/spec_syntax.py b/lib/spack/spack/test/spec_syntax.py
index 0af2ffdbd1..9437cb31fa 100644
--- a/lib/spack/spack/test/spec_syntax.py
+++ b/lib/spack/spack/test/spec_syntax.py
@@ -310,15 +310,15 @@ class TestSpecSyntax(object):
assert len(specs) == 2
@pytest.mark.db
- def test_ambiguous_hash(self, database):
+ def test_ambiguous_hash(self, mutable_database):
x1 = Spec('a')
x1._hash = 'xy'
x1._concrete = True
x2 = Spec('a')
x2._hash = 'xx'
x2._concrete = True
- database.add(x1, spack.store.layout)
- database.add(x2, spack.store.layout)
+ mutable_database.add(x1, spack.store.layout)
+ mutable_database.add(x2, spack.store.layout)
# ambiguity in first hash character
self._check_raises(AmbiguousHashError, ['/x'])