diff --git a/news/fix-mtm.rst b/news/fix-mtm.rst new file mode 100644 index 0000000..de444e5 --- /dev/null +++ b/news/fix-mtm.rst @@ -0,0 +1,23 @@ +**Added:** + +* No news added. + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/tests/conftest.py b/tests/conftest.py index b52f7e4..0f51a62 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ import json +import os import subprocess from pathlib import Path @@ -10,14 +11,18 @@ def conda_env(tmp_path): env_dir = tmp_path / "fake_env" env_dir_str = env_dir.as_posix() + shell = os.name == "nt" subprocess.run( ["conda", "create", "-y", "-p", env_dir_str], check=True, capture_output=True, + shell=shell, ) yield env_dir_str subprocess.run( - ["conda", "env", "remove", "-p", env_dir_str, "-y"], check=True + ["conda", "env", "remove", "-p", env_dir_str, "-y"], + check=True, + shell=shell, )