unittest: Print no. of skipped tests in a way compatible with CPython.

Perhaps, modern CPython (3.8).

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
pull/488/head
Paul Sokolovsky 2021-10-12 08:57:23 +03:00 zatwierdzone przez Andrew Leech
rodzic 01fcd42042
commit 5a53a75ec1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -237,7 +237,7 @@ class TestRunner:
else: else:
msg = "OK" msg = "OK"
if res.skippedNum > 0: if res.skippedNum > 0:
msg += " (%d skipped)" % res.skippedNum msg += " (skipped=%d)" % res.skippedNum
print(msg) print(msg)
return res return res