summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-10 06:36:23 +0100
committerDaniel Hahler <git@thequod.de>2020-01-10 06:37:22 +0100
commit9fa6cb0db06fb71d60cbd7892b8b846a8953fede (patch)
tree267a882db6080b401a5b176ad6198f67c915737c
parentcdb09b188165dc582d2d0c170b6d38ad213b39bd (diff)
downloadsetuptools-scm-9fa6cb0db06fb71d60cbd7892b8b846a8953fede.tar.gz
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.
-rw-r--r--testing/test_git.py3
1 files changed, 2 insertions, 1 deletions
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"')