summaryrefslogtreecommitdiff
path: root/testing/tests/benchmarks/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/benchmarks/conftest.py')
-rw-r--r--testing/tests/benchmarks/conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/tests/benchmarks/conftest.py b/testing/tests/benchmarks/conftest.py
index e31f98c4..8a82b012 100644
--- a/testing/tests/benchmarks/conftest.py
+++ b/testing/tests/benchmarks/conftest.py
@@ -141,6 +141,11 @@ def _monitored_benchmark(benchmark_fixture, benchmark_function, request,
benchmark_fixture.extra_info.update({
'memory_percent': watcher.memory_percent,
})
+ # add docstring info
+ if request.scope == 'function':
+ fun = request.function
+ doc = fun.__doc__
+ benchmark_fixture.extra_info.update({'doc': doc or ''})
def _watch_memory(request):