summaryrefslogtreecommitdiff
path: root/tests/pyb/i2c_error.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-12-13 16:43:17 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-13 17:27:29 +1100
commit4b184d12819139fc51073248614111c45a5ac631 (patch)
treea9f94a55ac06d72bb1f6258d0db06aee05af13af /tests/pyb/i2c_error.py
parent7280bf40d9b43118cca87a7321c088e118a5ebc1 (diff)
tests/pyb: Refactor pyboard tests to work on PYBv1, PYBLITEv1 and PYBD.
Diffstat (limited to 'tests/pyb/i2c_error.py')
-rw-r--r--tests/pyb/i2c_error.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pyb/i2c_error.py b/tests/pyb/i2c_error.py
index 3201d6367..e0f721179 100644
--- a/tests/pyb/i2c_error.py
+++ b/tests/pyb/i2c_error.py
@@ -3,6 +3,10 @@
import pyb
from pyb import I2C
+if not hasattr(pyb, 'Accel'):
+ print('SKIP')
+ raise SystemExit
+
# init accelerometer
pyb.Accel()