kopia lustrzana https://github.com/micropython/micropython-lib
unittest: Add skipIf decorator.
rodzic
49140d6c13
commit
b36f292822
|
@ -133,6 +133,10 @@ def skip(msg):
|
|||
return _inner
|
||||
return _decor
|
||||
|
||||
def skipIf(cond, msg):
|
||||
if not cond:
|
||||
return lambda x: x
|
||||
return skip(msg)
|
||||
|
||||
def skipUnless(cond, msg):
|
||||
if cond:
|
||||
|
|
Ładowanie…
Reference in New Issue