From 580646673960899ae577ea05b5b88abf740bf16d Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 20 Mar 2020 15:44:06 +0000 Subject: [PATCH] Fix for test in py3 --- library/tests/test_compensation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/tests/test_compensation.py b/library/tests/test_compensation.py index 30b7156..89b0cd9 100644 --- a/library/tests/test_compensation.py +++ b/library/tests/test_compensation.py @@ -29,7 +29,7 @@ def test_calc_gas_resistance(smbus, calibration): """Validate gas calculation against mock calibration data.""" sensor = bme680.BME680() sensor.calibration_data = calibration - assert sensor._calc_gas_resistance(0, 0) == 12946860 + assert int(sensor._calc_gas_resistance(0, 0)) == 12946860 def test_temp_offset(smbus, calibration):