test: fixed 'refresh_builtin_mock' fixture (#2748)
This commit is contained in:

committed by
Todd Gamblin

parent
3dd4a01a5e
commit
9271c69b5d
@@ -122,7 +122,6 @@ def builtin_mock(repo_path):
|
||||
def refresh_builtin_mock(builtin_mock, repo_path):
|
||||
"""Refreshes the state of spack.repo"""
|
||||
# Get back the real repository
|
||||
spack.repo.swap(builtin_mock.real)
|
||||
mock_repo = copy.deepcopy(repo_path)
|
||||
spack.repo.swap(mock_repo)
|
||||
return builtin_mock
|
||||
|
Reference in New Issue
Block a user