From 33db96e2b0219c03590d6a43a1b65c6d99563997 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Wed, 12 Nov 2025 14:31:08 -0500 Subject: [PATCH 1/3] fix windows merge to main CI issue --- tests/test_packsmanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_packsmanager.py b/tests/test_packsmanager.py index c0adf49..618011e 100644 --- a/tests/test_packsmanager.py +++ b/tests/test_packsmanager.py @@ -1,6 +1,7 @@ import os import re import subprocess +import sys from pathlib import Path import pytest @@ -375,7 +376,7 @@ def test_print_packs_and_examples( packs_to_install, expected, example_cases, capsys, conda_env ): env_dir_str = Path(conda_env).as_posix() - shell = os.name == "nt" + shell = sys.platform.startswith("win") req_dir = example_cases / "case5" / "requirements" / "packs" for pack in packs_to_install: req_file = (req_dir / f"{pack}.txt").as_posix() From dc84dd84e021a3b16e5e570aa637467f8aa15888 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Wed, 12 Nov 2025 15:27:14 -0500 Subject: [PATCH 2/3] fix windows CI issue --- tests/conftest.py | 7 ++++++- tests/test_packsmanager.py | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) 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, ) diff --git a/tests/test_packsmanager.py b/tests/test_packsmanager.py index 618011e..c0adf49 100644 --- a/tests/test_packsmanager.py +++ b/tests/test_packsmanager.py @@ -1,7 +1,6 @@ import os import re import subprocess -import sys from pathlib import Path import pytest @@ -376,7 +375,7 @@ def test_print_packs_and_examples( packs_to_install, expected, example_cases, capsys, conda_env ): env_dir_str = Path(conda_env).as_posix() - shell = sys.platform.startswith("win") + shell = os.name == "nt" req_dir = example_cases / "case5" / "requirements" / "packs" for pack in packs_to_install: req_file = (req_dir / f"{pack}.txt").as_posix() From 6a6569d23a42eb33250643c94a1108905c3f0818 Mon Sep 17 00:00:00 2001 From: Caden Myers Date: Wed, 12 Nov 2025 15:27:47 -0500 Subject: [PATCH 3/3] news --- news/fix-mtm.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 news/fix-mtm.rst 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:** + +*