Skip to content

Commit be6e021

Browse files
authored
Merge pull request #20 from cadenmyers13/scrap1
shell var in fixture
2 parents 509d64d + 25cf166 commit be6e021

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import os
23
import subprocess
34
from pathlib import Path
45

@@ -10,10 +11,12 @@
1011
def conda_env(tmp_path):
1112
env_dir = tmp_path / "fake_env"
1213
env_dir_str = env_dir.as_posix()
14+
shell = os.name == "nt"
1315
subprocess.run(
1416
["conda", "create", "-y", "-p", env_dir_str],
1517
check=True,
1618
capture_output=True,
19+
shell=shell,
1720
)
1821
yield env_dir_str
1922
subprocess.run(

0 commit comments

Comments
 (0)