stop duplicating class name.
this code really liked to duplicate the class name. I think we can handle having it only once in the string. Change-Id: Ie720d5b03f1656cacb8662c99412b24cb0641165 Reviewed-on: https://review.openstack.org/20210 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
45940f5aa3
commit
68a533882a
@ -562,7 +562,7 @@ class HtmlOutput(unittest.TestResult):
|
|||||||
if cls.mod == "__main__":
|
if cls.mod == "__main__":
|
||||||
name = cls.name
|
name = cls.name
|
||||||
else:
|
else:
|
||||||
name = "%s.%s" % (cls.mod, cls.name)
|
name = "%s" % (cls.name)
|
||||||
doc = cls.__doc__ and cls.__doc__.split("\n")[0] or ""
|
doc = cls.__doc__ and cls.__doc__.split("\n")[0] or ""
|
||||||
desc = doc and '%s: %s' % (name, doc) or name
|
desc = doc and '%s: %s' % (name, doc) or name
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user