kopia lustrzana https://github.com/micropython/micropython-lib
unittest: Show class name of test method.
Makes output more compatible with CPython.mqtt
rodzic
b36f292822
commit
cfa1b9cce0
|
@ -184,7 +184,7 @@ def run_class(c, test_result):
|
||||||
tear_down = getattr(o, "tearDown", lambda: None)
|
tear_down = getattr(o, "tearDown", lambda: None)
|
||||||
for name in dir(o):
|
for name in dir(o):
|
||||||
if name.startswith("test"):
|
if name.startswith("test"):
|
||||||
print(name, end=' ...')
|
print("%s (%s) ..." % (name, c.__qualname__), end="")
|
||||||
m = getattr(o, name)
|
m = getattr(o, name)
|
||||||
set_up()
|
set_up()
|
||||||
try:
|
try:
|
||||||
|
|
Ładowanie…
Reference in New Issue