From 49484d93ba4183af460e592bb163153a92ba8571 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 17 Jul 2017 20:37:19 -0300 Subject: [benchmarks] add docstrings for benchmarks --- testing/tests/benchmarks/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/tests/benchmarks/conftest.py') 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): -- cgit v1.2.3