From 9fa6cb0db06fb71d60cbd7892b8b846a8953fede Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 10 Jan 2020 06:36:23 +0100 Subject: Fix testing/test_git.py::test_git_archive_export_ignore Ensure `$HOME` is unset, since otherwise `init.templatedir` might get picked up from the user's config, which might e.g. not include the `.git/info` dir then. --- testing/test_git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/test_git.py b/testing/test_git.py index 1a89da4..240415b 100644 --- a/testing/test_git.py +++ b/testing/test_git.py @@ -10,7 +10,8 @@ from setuptools_scm.file_finder_git import git_find_files @pytest.fixture -def wd(wd): +def wd(wd, monkeypatch): + monkeypatch.delenv("HOME", raising=False) wd("git init") wd("git config user.email test@example.com") wd('git config user.name "a test"') -- cgit v1.2.1