Skip to content

Commit 01b241a

Browse files
authored
Do not hardcode Python executable name (#504)
1 parent 170d9be commit 01b241a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

upath/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def http_server(tmp_path_factory):
286286
requests = pytest.importorskip("requests")
287287
pytest.importorskip("http.server")
288288
proc = subprocess.Popen(
289-
shlex.split(f"python -m http.server --directory {http_tempdir} 18080")
289+
shlex.split(f"{sys.executable} -m http.server --directory {http_tempdir} 18080")
290290
)
291291
try:
292292
url = "http://127.0.0.1:18080/folder"

0 commit comments

Comments
 (0)