diff --git a/openquake/engine/tests/calculators/hazard/general_test.py b/openquake/engine/tests/calculators/hazard/general_test.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tests/calculators/hazard/general_test.py
+++ b/openquake/engine/tests/calculators/hazard/general_test.py
@@ -215,7 +215,7 @@ class CalculationLimitsTestCase(unittest.TestCase):
         calc = get_calculator_class('hazard', hc.calculation_mode)(job)
         input_weight, output_weight = calc.pre_execute()
         self.assertEqual(input_weight, 1352.75)
-        self.assertEqual(output_weight, 12.1)
+        self.assertAlmostEqual(output_weight, 12.1)
         # NB: 12.1 = 121 sites * 2 IMT * 2 rlzs * 5 SES * 50/10000 years
Fixed a test broken by the change in the output_weight


Former-commit-id: f<I>ce<I>ea<I>f<I>e5a<I>afa<I>a9a<I>