diff --git a/tests/commands/install_uninstall_test.py b/tests/commands/install_uninstall_test.py index bb511384..946a24aa 100644 --- a/tests/commands/install_uninstall_test.py +++ b/tests/commands/install_uninstall_test.py @@ -149,7 +149,8 @@ def test_environment_not_sourced(tmpdir_factory): ret, stdout, stderr = local['git'].run( ['commit', '--allow-empty', '-m', 'foo'], - env={}, + # XXX: 'HOME' makes this test pass on OSX + env={'HOME': os.environ['HOME']}, retcode=None, ) assert ret == 1 diff --git a/tests/repository_test.py b/tests/repository_test.py index 55950641..018e8256 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -180,7 +180,7 @@ def test_cwd_of_hook(tmpdir_factory, store): with local.cwd(path): _test_hook_repo( tmpdir_factory, store, 'prints_cwd_repo', - 'prints_cwd', [], path + '\n', + 'prints_cwd', ['-L'], path + '\n', ) @@ -284,7 +284,7 @@ def test_tags_on_repositories(in_tmpdir, tmpdir_factory, store): repo_1 = Repository.create( make_config_from_repo(git_dir_1, sha=tag), store, ) - ret = repo_1.run_hook('prints_cwd', []) + ret = repo_1.run_hook('prints_cwd', ['-L']) assert ret[0] == 0 assert ret[1].strip() == in_tmpdir