diff options
Diffstat (limited to 'tests/pyb/i2c_error.py')
| -rw-r--r-- | tests/pyb/i2c_error.py | 4 |
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() |
