1 parent bd6622a commit c3f519aCopy full SHA for c3f519a
1 file changed
tests/extmod/machine_pinbase.py
@@ -1,10 +1,16 @@
1
try:
2
- from umachine import PinBase
+ import umachine as machine
3
except ImportError:
4
- from machine import PinBase
+ import machine
5
+try:
6
+ machine.PinBase
7
+except AttributeError:
8
+ print("SKIP")
9
+ import sys
10
+ sys.exit()
11
12
-class MyPin(PinBase):
13
+class MyPin(machine.PinBase):
14
15
def __init__(self):
16
print("__init__")
0 commit comments