X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/e228b8bb9786acb24948e19d900a7ff5b53955c4..c251094a16834dd708e77674e399aa2a729b38b7:/test/src/testing/universal/i2c.py diff --git a/test/src/testing/universal/i2c.py b/test/src/testing/universal/i2c.py index 5c2331a..0a3e478 100644 --- a/test/src/testing/universal/i2c.py +++ b/test/src/testing/universal/i2c.py @@ -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