File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -206,27 +206,29 @@ def test_whole_workflow(tmpdir):
206206 repo = tmpdir / "repo"
207207 venv_dir = repo / "outer_venv"
208208 bench_runner_checkout = DATA_PATH .parents [1 ]
209+ if sys .platform .startswith ("win" ):
210+ binary = venv_dir / "Scripts" / "python.exe"
211+ else :
212+ binary = venv_dir / "bin" / "python"
209213
210214 repo .mkdir ()
211215
212216 with contextlib .chdir (repo ):
213217 subprocess .check_call ([sys .executable , "-m" , "venv" , str (venv_dir )])
214218 subprocess .check_call (
215219 [
216- str (venv_dir / "bin" / "python" ),
220+ str (binary ),
217221 "-m" ,
218222 "pip" ,
219223 "install" ,
220224 str (bench_runner_checkout ),
221225 ]
222226 )
223- subprocess .check_call (
224- [str (venv_dir / "bin" / "python" ), "-m" , "bench_runner" , "install" ]
225- )
227+ subprocess .check_call ([str (binary ), "-m" , "bench_runner" , "install" ])
226228 # install --check should never fail immediately after install
227229 subprocess .check_call (
228230 [
229- str (venv_dir / "bin" / "python" ),
231+ str (binary ),
230232 "-m" ,
231233 "bench_runner" ,
232234 "install" ,
@@ -237,7 +239,7 @@ def test_whole_workflow(tmpdir):
237239 fd .write (f"{ str (bench_runner_checkout )} \n " )
238240 subprocess .check_call (
239241 [
240- str (venv_dir / "bin" / "python" ),
242+ str (binary ),
241243 "workflow_bootstrap.py" ,
242244 "python" ,
243245 "main" ,
You can’t perform that action at this time.
0 commit comments