summaryrefslogtreecommitdiffstatshomepage
path: root/tests/ports/stm32/i2c_error.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ports/stm32/i2c_error.py')
-rw-r--r--tests/ports/stm32/i2c_error.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ports/stm32/i2c_error.py b/tests/ports/stm32/i2c_error.py
index 1228962f5f..de6e1ca6fe 100644
--- a/tests/ports/stm32/i2c_error.py
+++ b/tests/ports/stm32/i2c_error.py
@@ -1,12 +1,13 @@
# test I2C errors, with polling (disabled irqs) and DMA
import pyb
-from pyb import I2C
if not hasattr(pyb, "Accel"):
print("SKIP")
raise SystemExit
+from pyb import I2C
+
# init accelerometer
pyb.Accel()