Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/unit/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_energy():
u2
), f"Expected u1 to be compatible with u2, but they are not (u1={u1!r}, u2={u2!r})"
assert (
u1.conversion_factor(u2) == 3.6
u1.conversion_factor(u2) == pytest.approx(3.6)
), f"Expected u1.conversion_factor(u2) to be 3.6, but got {u1.conversion_factor(u2)}"


Expand Down
Loading