Skip to content

Commit 4d82a5f

Browse files
committed
set env to ensure test works well on Windows
1 parent 68093d3 commit 4d82a5f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ jobs:
4343
- os: windows-latest
4444
python-version: "3.9"
4545
pydantic-version: pydantic-v2
46-
- os: macos-latest
47-
python-version: "3.9"
48-
pydantic-version: pydantic-v2
4946
- os: ubuntu-latest
5047
python-version: "3.10"
5148
pydantic-version: pydantic-v1

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)