unittest: Show class name of test method.

Makes output more compatible with CPython.
mqtt
Paul Sokolovsky 2017-09-21 00:11:10 +03:00
rodzic b36f292822
commit cfa1b9cce0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -184,7 +184,7 @@ def run_class(c, test_result):
tear_down = getattr(o, "tearDown", lambda: None)
for name in dir(o):
if name.startswith("test"):
print(name, end=' ...')
print("%s (%s) ..." % (name, c.__qualname__), end="")
m = getattr(o, name)
set_up()
try: