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

Commit1b44082

Browse files
committed
repo-TC: FIX HOME-expansion check, Appveyor has no HOME var
1 parent06b1611 commit1b44082

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎git/test/test_repo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,16 +486,17 @@ def test_comparison_and_hash(self):
486486

487487
@with_rw_directory
488488
deftest_tilde_and_env_vars_in_repo_path(self,rw_dir):
489-
ph=os.environ['HOME']
489+
ph=os.environ.get('HOME')
490490
try:
491491
os.environ['HOME']=rw_dir
492492
Repo.init(os.path.join('~','test.git'),bare=True)
493493

494494
os.environ['FOO']=rw_dir
495495
Repo.init(os.path.join('$FOO','test.git'),bare=True)
496496
finally:
497-
os.environ['HOME']=ph
498-
delos.environ['FOO']
497+
ifph:
498+
os.environ['HOME']=ph
499+
delos.environ['FOO']
499500
# end assure HOME gets reset to what it was
500501

501502
deftest_git_cmd(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp