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

Commitbecf5ef

Browse files
committed
Fixed test to actually use tilde and environment variables respectively.
Related togitpython-developers#83
1 parent6e8aa9b commitbecf5ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎git/test/test_repo.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,13 +384,17 @@ def test_comparison_and_hash(self):
384384
assertlen(set((self.rorepo,self.rorepo)))==1
385385

386386
@with_rw_directory
387-
deftest_tilde_in_repo_path(self,rw_dir):
387+
deftest_tilde_and_env_vars_in_repo_path(self,rw_dir):
388388
ph=os.environ['HOME']
389389
try:
390390
os.environ['HOME']=rw_dir
391-
Repo.init(os.path.join(rw_dir,'test.git'),bare=True)
391+
Repo.init(os.path.join('~','test.git'),bare=True)
392+
393+
os.environ['FOO']=rw_dir
394+
Repo.init(os.path.join('$FOO','test.git'),bare=True)
392395
finally:
393396
os.environ['HOME']=ph
397+
delos.environ['FOO']
394398
# end assure HOME gets reset to what it was
395399

396400
deftest_git_cmd(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp