Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae28c98

Browse files
committed
Refactor _rollback_refresh slightly for clarity
1 parentb3fc30e commitae28c98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎test/test_git.py

Lines changed: 1 addition & 2 deletions
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-
yieldold_git_executable#Let test code run that may mutate class state.
50+
yieldGit.GIT_PYTHON_GIT_EXECUTABLE#Provide the old value for convenience.
5251
finally:
5352
refresh()
5453

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp