The replacement for `self.assertAlmostEqual(3, 3.0)` is `round(abs(3 - 3.0), 7) == 0`. How about replacing it with `pytest.approx(3) == 3.0` instead? [[pytest docs](https://docs.pytest.org/en/7.1.x/reference/reference.html#pytest-approx)]