We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3fc30e commit ae28c98Copy full SHA for ae28c98
test/test_git.py
@@ -46,9 +46,8 @@ def _patch_out_env(name):
46
47
@contextlib.contextmanager
48
def _rollback_refresh():
49
- old_git_executable = Git.GIT_PYTHON_GIT_EXECUTABLE
50
try:
51
- yield old_git_executable # Let test code run that may mutate class state.
+ yield Git.GIT_PYTHON_GIT_EXECUTABLE # Provide the old value for convenience.
52
finally:
53
refresh()
54
0 commit comments