Skip to content

Commit b438a48

Browse files
committed
Create test directories in ~/.psij/test, since CNs may not have access to
CWD (the CI runner runs things in /tmp).
1 parent 4e7678c commit b438a48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/_test_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def _temppath() -> Iterator[Path]:
117117
@contextmanager
118118
def _tempdir(keep: bool = False) -> Iterator[Path]:
119119
_make_test_dir()
120-
d = tempfile.mkdtemp(dir=Path.cwd())
120+
test_dir = Path.home() / '.psij' / 'test'
121+
d = tempfile.mkdtemp(dir=test_dir)
121122
try:
122123
yield Path(d)
123124
shutil.rmtree(d)

0 commit comments

Comments
 (0)