From accc3bf77d611bc4d07ba648aecd5e7d92071619 Mon Sep 17 00:00:00 2001 From: "N. L." Date: Mon, 4 Dec 2023 20:29:42 +0100 Subject: [PATCH] fix(test_detector): use assertAlmostEqual instead assertEqual to avoid different byte reading capability --- tests/test_detectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_detectors.py b/tests/test_detectors.py index 7f178cf..0d884f5 100644 --- a/tests/test_detectors.py +++ b/tests/test_detectors.py @@ -176,7 +176,7 @@ def test_pot_detector_evaluation_with_ks_1sample(self): "scale": [272179.457686573], } - self.assertEqual(pot_detector._POTDetector__eval, expected_kstest_result) + self.assertAlmostEqual(pot_detector._POTDetector__eval, expected_kstest_result) def tearDown(self) -> None: return super().tearDown()