Fixes this test so it works regardless of cwd

This commit is contained in:
stumpylog
2026-06-05 11:56:49 -07:00
parent 09b3063344
commit 3c2ef25edd
+4 -1
View File
@@ -1,5 +1,8 @@
import subprocess
import sys
from pathlib import Path
_SRC_DIR = Path(__file__).parent.parent.parent
class TestLazyAiImports:
@@ -17,6 +20,6 @@ class TestLazyAiImports:
[sys.executable, "-c", code],
capture_output=True,
text=True,
cwd="src",
cwd=_SRC_DIR,
)
assert result.returncode == 0, result.stdout + result.stderr