Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions benchmarks/asv_delegated.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,15 @@ def py_ver_from_lockfiles(lockfile: Path) -> str:
)

env_parent_contents = list(env_parent_dir.iterdir())
if len(env_parent_contents) != 1:
env_parent_dirs = [p for p in env_parent_contents if p.is_dir()]
if len(env_parent_dirs) != 1:
message = (
f"{env_parent_dir} contains {len(env_parent_contents)} "
"items, expected 1. Cannot determine the environment "
f"{env_parent_dir} contains {len(env_parent_dirs)} "
"directories, expected 1. Cannot determine the environment "
"directory."
)
raise FileNotFoundError(message)
(delegated_env_path,) = env_parent_contents
(delegated_env_path,) = env_parent_dirs

case _:
message = "No environment setup is known for this commit of Iris."
Expand Down
4 changes: 3 additions & 1 deletion docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ This document explains the changes made to Iris for this release
💼 Internal
===========

#. N/A
#. `@trexfeathers`_ fixed the benchmarking ``asv_delegated.py`` to work with
Nox release ``2026.04.10`` (which adds more files to the environment parent
directory, breaking previous assumptions). (:pull:`7046`)


.. comment
Expand Down
Loading