test: fixed 'refresh_builtin_mock' fixture (#2748)

This commit is contained in:
Massimiliano Culpo
2017-01-05 19:25:24 +01:00
committed by Todd Gamblin
parent 3dd4a01a5e
commit 9271c69b5d

View File

@@ -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