Skip to content

Commit

Permalink
TST: Fix index error for profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Dec 2, 2024
1 parent 7d2e885 commit 893e5a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asv/commands/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 893e5a1

Please sign in to comment.