diff options
| author | Damien George <damien.p.george@gmail.com> | 2019-12-13 16:43:17 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-12-13 17:27:29 +1100 |
| commit | 4b184d12819139fc51073248614111c45a5ac631 (patch) | |
| tree | a9f94a55ac06d72bb1f6258d0db06aee05af13af /tests/pyb/i2c_error.py | |
| parent | 7280bf40d9b43118cca87a7321c088e118a5ebc1 (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.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() |
