diff --git a/asv_runner/benchmarks/__init__.py b/asv_runner/benchmarks/__init__.py index 7add160..6d08204 100644 --- a/asv_runner/benchmarks/__init__.py +++ b/asv_runner/benchmarks/__init__.py @@ -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 = []