]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Run latest version of black
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Thu, 10 Feb 2022 17:52:36 +0000 (09:52 -0800)
committerMelissa LeBlanc-Williams <melissa@adafruit.com>
Thu, 10 Feb 2022 17:52:36 +0000 (09:52 -0800)
test/src/testing/universal/i2c.py

index 184fee4021e80925f3772d56d80de17051486f89..ba74044999b338f73303ac820b0b9bb4c8c5e118 100644 (file)
@@ -66,7 +66,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