Skip to content

Commit cfa1b9c

Browse files
author
Paul Sokolovsky
committed
unittest: Show class name of test method.
Makes output more compatible with CPython.
1 parent b36f292 commit cfa1b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest/unittest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def run_class(c, test_result):
184184
tear_down = getattr(o, "tearDown", lambda: None)
185185
for name in dir(o):
186186
if name.startswith("test"):
187-
print(name, end=' ...')
187+
print("%s (%s) ..." % (name, c.__qualname__), end="")
188188
m = getattr(o, name)
189189
set_up()
190190
try:

0 commit comments

Comments
 (0)