diff options
Diffstat (limited to 'tests/ports/stm32/i2c.py')
-rw-r--r-- | tests/ports/stm32/i2c.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ports/stm32/i2c.py b/tests/ports/stm32/i2c.py index c968843273..7e7fd25040 100644 --- a/tests/ports/stm32/i2c.py +++ b/tests/ports/stm32/i2c.py @@ -1,5 +1,8 @@ -import pyb -from pyb import I2C +try: + from pyb import I2C +except ImportError: + print("SKIP") + raise SystemExit # test we can correctly create by id for bus in (-1, 0, 1): |