Skip to content

Commit 02fa9d4

Browse files
committed
fix test to be ready for Windows
1 parent 7d00768 commit 02fa9d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_select_gen.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import subprocess
23
import sys
34
from pathlib import Path
@@ -10,8 +11,8 @@
1011
@needs_py39
1112
def test_select_gen() -> None:
1213
result = subprocess.run(
13-
[sys.executable, "scripts/generate_select.py"],
14-
env={"CHECK_JINJA": "1"},
14+
[sys.executable, Path("scripts") / "generate_select.py"],
15+
env={**os.environ, "CHECK_JINJA": "1"},
1516
check=True,
1617
cwd=root_path,
1718
capture_output=True,

0 commit comments

Comments
 (0)