Skip to content

Commit 49c9d80

Browse files
committed
Isolate the tests from the user's home directory.
Closes #35
1 parent f1a5534 commit 49c9d80

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
from jaraco import vcs
77

88

9+
# isolate the tests from a developer's VCS config
10+
pytestmark = pytest.mark.usefixtures('tmp_home_dir')
11+
12+
913
def _ensure_present(mgr):
1014
try:
1115
mgr.version()

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test = [
4545
"pygments",
4646
"jaraco.path",
4747
"types-python-dateutil",
48+
"pytest-home",
4849
]
4950
doc = [
5051
# upstream

0 commit comments

Comments
 (0)