summaryrefslogtreecommitdiff
path: root/tests/pyb/i2c_error.py
diff options
context:
space:
mode:
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()