Skip to content

Commit c07e400

Browse files
committed
Fix test
1 parent 8fb56cb commit c07e400

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎cuda_core/tests/test_allocation_failure.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ def run_child(shim, scenario):
139139
return subprocess.run( # noqa: S603
140140
[sys.executable, "-c", CHILD, str(shim), scenario],
141141
env=env,
142+
# Run outside the source tree: "-c" puts the cwd first on sys.path, so a
143+
# cwd of cuda_core/ would import the unbuilt source package.
144+
cwd=shim.parent,
142145
capture_output=True,
143146
text=True,
144147
timeout=300,

0 commit comments

Comments
 (0)