Skip to content

Commit 42d3304

Browse files
committed
test_select_gen: passthru environment variables
black and jinja2 may only be available via VIRTUAL_ENV or PYTHONPATH
1 parent 4590963 commit 42d3304

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_select_gen.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import subprocess
22
import sys
3+
import os
34
from pathlib import Path
45

56
from .conftest import needs_py39
@@ -9,9 +10,11 @@
910

1011
@needs_py39
1112
def test_select_gen() -> None:
13+
env = os.environ.copy()
14+
env["CHECK_JINJA"] = "1"
1215
result = subprocess.run(
1316
[sys.executable, "scripts/generate_select.py"],
14-
env={"CHECK_JINJA": "1"},
17+
env=env,
1518
check=True,
1619
cwd=root_path,
1720
capture_output=True,

0 commit comments

Comments
 (0)