mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
tests/basic/[a-f]*: Make skippable.
For small ports which don't have all features enabled.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
try:
|
||||
# If we don't expose object.__new__ (small ports), there's
|
||||
# nothing to test.
|
||||
object.__new__
|
||||
except AttributeError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
class A:
|
||||
def __new__(cls):
|
||||
print("A.__new__")
|
||||
|
||||
Reference in New Issue
Block a user