diff options
author | drebs <drebs@leap.se> | 2017-07-17 20:37:19 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-07-18 13:51:09 -0300 |
commit | 49484d93ba4183af460e592bb163153a92ba8571 (patch) | |
tree | 8987a6fbe513f249f078b09afbc6964660639a97 /testing/tests/benchmarks/conftest.py | |
parent | 465737c82439fd4fa32c4a89c5e84b1bca7fc4d7 (diff) |
[benchmarks] add docstrings for benchmarks
Diffstat (limited to 'testing/tests/benchmarks/conftest.py')
-rw-r--r-- | testing/tests/benchmarks/conftest.py | 4 |
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): |