mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests/basic/: Make various tests skippable.
To run the testsuite on small ports.
This commit is contained in:
@@ -5,6 +5,13 @@ class Base:
|
||||
def foo(cls):
|
||||
print(cls.__name__)
|
||||
|
||||
try:
|
||||
Base.__name__
|
||||
except AttributeError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
class Sub(Base):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user