From 8c2e91d63d5c96691d9e4ea84e18e254ca5efb1b Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Tue, 17 Sep 2024 17:50:20 -0400 Subject: [PATCH] add pragma: no cover to tests --- tests/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index a57fe1cb0..e8b453f9d 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -39,9 +39,9 @@ def compare_dicts(result: Any, expected: dict[str, Any]) -> None: lhs = lhs.as_py() # noqa: PLW2901 if hasattr(rhs, "as_py"): # pragma: no cover rhs = rhs.as_py() # noqa: PLW2901 - if hasattr(lhs, "item"): + if hasattr(lhs, "item"): # pragma: no cover lhs = lhs.item() # noqa: PLW2901 - if hasattr(rhs, "item"): + if hasattr(rhs, "item"): # pragma: no cover rhs = rhs.item() # noqa: PLW2901 if isinstance(lhs, float) and not math.isnan(lhs): assert math.isclose(lhs, rhs, rel_tol=0, abs_tol=1e-6), (lhs, rhs)