Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aae98a0

Browse files
author
Anthony Sottile
committed
make a few more tests pass on osx.
1 parent d02f419 commit aae98a0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

tests/commands/install_uninstall_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def test_environment_not_sourced(tmpdir_factory):
149149

150150
ret, stdout, stderr = local['git'].run(
151151
['commit', '--allow-empty', '-m', 'foo'],
152-
env={},
152+
# XXX: 'HOME' makes this test pass on OSX
153+
env={'HOME': os.environ['HOME']},
153154
retcode=None,
154155
)
155156
assert ret == 1

tests/repository_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_cwd_of_hook(tmpdir_factory, store):
180180
with local.cwd(path):
181181
_test_hook_repo(
182182
tmpdir_factory, store, 'prints_cwd_repo',
183-
'prints_cwd', [], path + '\n',
183+
'prints_cwd', ['-L'], path + '\n',
184184
)
185185

186186

@@ -284,7 +284,7 @@ def test_tags_on_repositories(in_tmpdir, tmpdir_factory, store):
284284
repo_1 = Repository.create(
285285
make_config_from_repo(git_dir_1, sha=tag), store,
286286
)
287-
ret = repo_1.run_hook('prints_cwd', [])
287+
ret = repo_1.run_hook('prints_cwd', ['-L'])
288288
assert ret[0] == 0
289289
assert ret[1].strip() == in_tmpdir
290290

0 commit comments

Comments
 (0)