Skip to content

Commit

Permalink
add pragma: no cover to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Sep 17, 2024
1 parent c4f9ee0 commit 8c2e91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8c2e91d

Please sign in to comment.