Skip to content

Commit d31be68

Browse files
committed
remove clear_caches since 'config' fixture would need to be refactored to initialize scopes every time it is used if I do that
1 parent 4742854 commit d31be68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/spack/spack/test/conftest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,11 @@ def mutable_config(tmpdir_factory, configuration_dir):
442442
with use_configuration(cfg):
443443
yield cfg
444444

445-
spack.config.config.clear_caches()
445+
# TODO: this should be done, but it would actually undo the one-time setup
446+
# that occurs for the configuration_dir fixture and interferes with tests
447+
# using the 'config' fixture. To allow this, the 'config' fixture needs
448+
# to be refactored to reassemble the scopes into a config every time.
449+
# spack.config.config.clear_caches()
446450

447451

448452
@pytest.fixture()

0 commit comments

Comments
 (0)