Skip to content

Commit

Permalink
Merge pull request #42 from elac-safran/bugfix/issue-41
Browse files Browse the repository at this point in the history
Fix bug in `asv_runner.benchmarks`
  • Loading branch information
HaoZeke authored Oct 3, 2024
2 parents 9b7a26f + b779277 commit 1c88c49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions asv_runner/benchmarks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@
name for _, name, _ in pkgutil.iter_modules(pkgpath) if "_" not in name
]
asv_modules = [
dist.metadata["Name"]
name
for dist in distributions()
if dist.metadata["Name"].startswith("asv_bench")
if isinstance(name := dist.metadata.get("Name", None), str)
and name.startswith("asv_bench")
]
benchmark_types = []

Expand Down

0 comments on commit 1c88c49

Please sign in to comment.