Skip to content

Commit b8c3273

Browse files
committed
change env dir
1 parent 471550c commit b8c3273

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/conftest.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@
1616

1717

1818
@pytest.fixture(scope="session")
19-
def env_prefix():
20-
env_root = Path(appdirs.user_data_dir("pytest_code_runner_tests", "DerThorsten"))
21-
env_root.mkdir(exist_ok=True, parents=True)
19+
def env_prefix(tmp_path_factory):
20+
# env_root = Path(appdirs.user_data_dir("pytest_code_runner_tests", "DerThorsten"))
21+
# env_root.mkdir(exist_ok=True, parents=True)
22+
# env_prefix = Path(env_root) / "testenv"
23+
24+
env_root = = tmp_path_factory.mktemp("pytest_code_runner_tests")
2225
env_prefix = Path(env_root) / "testenv"
2326

2427
if env_prefix.exists():
2528
shutil.rmtree(env_prefix)
2629

27-
print("prefix", env_prefix)
2830
channels = (
2931
"-c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge"
3032
)

0 commit comments

Comments
 (0)