From 5f78703af8c12519409cf5e6e175d1735381b9e0 Mon Sep 17 00:00:00 2001 From: psakiev Date: Tue, 21 Feb 2023 08:53:07 -0700 Subject: [PATCH] Fixture function scope --- lib/spack/spack/test/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py index 7638ade00ce..cbb0c095307 100644 --- a/lib/spack/spack/test/conftest.py +++ b/lib/spack/spack/test/conftest.py @@ -1551,7 +1551,7 @@ def get_rev(): yield t -@pytest.fixture() +@pytest.fixture(scope="function") def mutable_mock_env_path(tmpdir_factory, mutable_config): """Fixture for mocking the internal spack environments directory.""" saved_path = ev.environment.default_env_path