Skip to content

Commit

Permalink
fix(test_detector): use assertAlmostEqual instead assertEqual to avoi…
Browse files Browse the repository at this point in the history
…d different byte reading capability
ninopleno committed Dec 4, 2023
1 parent ab1d2c1 commit accc3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_detectors.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit accc3bf

Please sign in to comment.