We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba5037 commit 5e04bc0Copy full SHA for 5e04bc0
src/pytest_benchmark/session.py
@@ -208,11 +208,13 @@ def handle_loading(self):
208
def finish(self):
209
self.handle_saving()
210
self.handle_loading()
211
- self.groups = self.config.hook.pytest_benchmark_group_stats(
212
- config=self.config,
213
- benchmarks=self.prepare_benchmarks(),
214
- group_by=self.group_by
215
- )
+ prepared_benchmarks = list(self.prepare_benchmarks())
+ if prepared_benchmarks:
+ self.groups = self.config.hook.pytest_benchmark_group_stats(
+ config=self.config,
+ benchmarks=self.prepare_benchmarks(),
216
+ group_by=self.group_by
217
+ )
218
219
def display(self, tr):
220
if not self.groups:
0 commit comments