X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/ef2657eaa1caf3262c6bbe1f2df5b6ed08f72162..refs/heads/revert-863-do-not-upload-bdist:/test/src/testing/universal/i2c.py diff --git a/test/src/testing/universal/i2c.py b/test/src/testing/universal/i2c.py index 5c2331a..b30a945 100644 --- a/test/src/testing/universal/i2c.py +++ b/test/src/testing/universal/i2c.py @@ -15,7 +15,6 @@ gc.collect() class TestBME280Interactive(TestCase): def test_read_value(self): - import board gc.collect() @@ -69,7 +68,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