Skip to content

Commit 33db96e

Browse files
committed
fix windows merge to main CI issue
1 parent 509d64d commit 33db96e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_packsmanager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import re
33
import subprocess
4+
import sys
45
from pathlib import Path
56

67
import pytest
@@ -375,7 +376,7 @@ def test_print_packs_and_examples(
375376
packs_to_install, expected, example_cases, capsys, conda_env
376377
):
377378
env_dir_str = Path(conda_env).as_posix()
378-
shell = os.name == "nt"
379+
shell = sys.platform.startswith("win")
379380
req_dir = example_cases / "case5" / "requirements" / "packs"
380381
for pack in packs_to_install:
381382
req_file = (req_dir / f"{pack}.txt").as_posix()

0 commit comments

Comments
 (0)