Commit c5c8d092 authored by Petr Pudlak's avatar Petr Pudlak Committed by Klaus Aehlig

Add the function name to textual descriptions of tests

It makes it a bit easier to find the corresponding functions.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 958c943b
......@@ -73,10 +73,13 @@ def _DescriptionOf(fn):
"""
if fn.__doc__:
desc = fn.__doc__.splitlines()[0].strip()
desc = desc.rstrip(".")
if fn.__name__:
desc = "[" + fn.__name__ + "] " + desc
else:
desc = "%r" % fn
return desc.rstrip(".")
return desc
def RunTest(fn, *args, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment