Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions news/fix-mtm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* No news added.

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os
import subprocess
from pathlib import Path

Expand All @@ -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,
)


Expand Down
Loading