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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/benchmarks/conftest.py b/testing/tests/benchmarks/conftest.py
index 8a82b012..25fe5134 100644
--- a/testing/tests/benchmarks/conftest.py
+++ b/testing/tests/benchmarks/conftest.py
@@ -144,8 +144,8 @@ def _monitored_benchmark(benchmark_fixture, benchmark_function, request,
# add docstring info
if request.scope == 'function':
fun = request.function
- doc = fun.__doc__
- benchmark_fixture.extra_info.update({'doc': doc or ''})
+ doc = fun.__doc__ or ''
+ benchmark_fixture.extra_info.update({'doc': doc.strip()})
def _watch_memory(request):