]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - test/src/testing/universal/i2c.py
Re-ran pre-commit after updating black version
[Adafruit_Blinka-hackapet.git] / test / src / testing / universal / i2c.py
index 5c2331a6a3d9f302c5475ed8f6f39dfb6eb948e8..0a3e478d58dddadc1e0dae3ea69f74928865d7ef 100644 (file)
@@ -69,7 +69,7 @@ class TestMMA8451Interactive(TestCase):
         sensor = adafruit_mma8451.MMA8451(i2c)
 
         x, y, z = sensor.acceleration
-        absolute = math.sqrt(x ** 2 + y ** 2 + z ** 2)
+        absolute = math.sqrt(x**2 + y**2 + z**2)
         self.assertTrue(9 <= absolute <= 11, "Not earth gravity")
 
         orientation = sensor.orientation