summaryrefslogtreecommitdiff
path: root/tests/pyb/dac.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/dac.py')
-rw-r--r--tests/pyb/dac.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pyb/dac.py b/tests/pyb/dac.py
index 884ec5829..6f03bbc64 100644
--- a/tests/pyb/dac.py
+++ b/tests/pyb/dac.py
@@ -1,5 +1,9 @@
import pyb
+if not hasattr(pyb, 'DAC'):
+ print('SKIP')
+ raise SystemExit
+
dac = pyb.DAC(1)
print(dac)
dac.noise(100)