diff --git a/dvc/testing/benchmarks/fixtures.py b/dvc/testing/benchmarks/fixtures.py index 04a53215c3..1dc6dac439 100644 --- a/dvc/testing/benchmarks/fixtures.py +++ b/dvc/testing/benchmarks/fixtures.py @@ -20,12 +20,17 @@ def bench_config(request): @pytest.fixture(scope="session") def make_dvc_venv(tmp_path_factory): def _make_dvc_venv(name): + name = _sanitize_venv_name(name) venv_dir = tmp_path_factory.mktemp(f"dvc-venv-{name}") return VirtualEnv(workspace=venv_dir) return _make_dvc_venv +def _sanitize_venv_name(name): + return name.replace("/", "-").replace("\\", "-") + + @pytest.fixture(scope="session") def dvc_venvs(): return {}