From 893e5a173221ebbb73df6db87e72d88c161c663a Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 2 Dec 2024 04:09:03 +0000 Subject: [PATCH] TST: Fix index error for profiles --- asv/commands/profiling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asv/commands/profiling.py b/asv/commands/profiling.py index b3bf93ba7..d574b43e8 100644 --- a/asv/commands/profiling.py +++ b/asv/commands/profiling.py @@ -11,7 +11,7 @@ from . import Command, common_args from ..benchmarks import Benchmarks from ..console import log -from ..environment import get_environments, is_existing_only +from ..environment import get_environments, is_existing_only, ExistingEnvironment from ..machine import Machine from ..profiling import ProfilerGui from ..repo import get_repo, NoSuchNameError @@ -172,6 +172,7 @@ def run(cls, conf, benchmark, revision=None, gui=None, output=None, env for env in environments if util.env_py_is_sys_version(env.python) + or isinstance(env, ExistingEnvironment) ][0] benchmarks = Benchmarks.discover(conf, repo, environments,