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):
206
206
repo = tmpdir / "repo"
207
207
venv_dir = repo / "outer_venv"
208
208
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"
209
213
210
214
repo .mkdir ()
211
215
212
216
with contextlib .chdir (repo ):
213
217
subprocess .check_call ([sys .executable , "-m" , "venv" , str (venv_dir )])
214
218
subprocess .check_call (
215
219
[
216
- str (venv_dir / "bin" / "python" ),
220
+ str (binary ),
217
221
"-m" ,
218
222
"pip" ,
219
223
"install" ,
220
224
str (bench_runner_checkout ),
221
225
]
222
226
)
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" ])
226
228
# install --check should never fail immediately after install
227
229
subprocess .check_call (
228
230
[
229
- str (venv_dir / "bin" / "python" ),
231
+ str (binary ),
230
232
"-m" ,
231
233
"bench_runner" ,
232
234
"install" ,
@@ -237,7 +239,7 @@ def test_whole_workflow(tmpdir):
237
239
fd .write (f"{ str (bench_runner_checkout )} \n " )
238
240
subprocess .check_call (
239
241
[
240
- str (venv_dir / "bin" / "python" ),
242
+ str (binary ),
241
243
"workflow_bootstrap.py" ,
242
244
"python" ,
243
245
"main" ,
You can’t perform that action at this time.
0 commit comments