Skip to content

Commit ae28c98

Browse files
committed
Refactor _rollback_refresh slightly for clarity
1 parent b3fc30e commit ae28c98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_git.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ def _patch_out_env(name):
4646

4747
@contextlib.contextmanager
4848
def _rollback_refresh():
49-
old_git_executable = Git.GIT_PYTHON_GIT_EXECUTABLE
5049
try:
51-
yield old_git_executable # Let test code run that may mutate class state.
50+
yield Git.GIT_PYTHON_GIT_EXECUTABLE # Provide the old value for convenience.
5251
finally:
5352
refresh()
5453

0 commit comments

Comments
 (0)