@@ -87,7 +87,7 @@ def task_show_capture():
8787 """
8888 tmp_path .joinpath ("workflow.py" ).write_text (textwrap .dedent (source ))
8989
90- result = run_in_subprocess (("python" , "workflow.py" ), cwd = tmp_path )
90+ result = run_in_subprocess (("uv" , "run" , " python" , "workflow.py" ), cwd = tmp_path )
9191
9292 assert result .exit_code == ExitCode .FAILED
9393
@@ -128,7 +128,7 @@ def test_wrong_capture_method(tmp_path):
128128 """
129129 tmp_path .joinpath ("workflow.py" ).write_text (textwrap .dedent (source ))
130130
131- result = run_in_subprocess (("python" , "workflow.py" ), cwd = tmp_path )
131+ result = run_in_subprocess (("uv" , "run" , " python" , "workflow.py" ), cwd = tmp_path )
132132 assert result .exit_code == ExitCode .CONFIGURATION_FAILED
133133 assert "Value 'a' is not a valid" in result .stdout
134134 assert "Traceback" not in result .stdout
@@ -255,7 +255,7 @@ def task_unicode():
255255 tmp_path .joinpath ("workflow.py" ).write_text (
256256 textwrap .dedent (source ), encoding = "utf-8"
257257 )
258- result = run_in_subprocess (("python" , "workflow.py" ), cwd = tmp_path )
258+ result = run_in_subprocess (("uv" , "run" , " python" , "workflow.py" ), cwd = tmp_path )
259259 assert result .exit_code == ExitCode .OK
260260 assert "1 Succeeded" in result .stdout
261261
0 commit comments