Skip to content

Commit

Permalink
Merge pull request #1821 from mtasaka/py312-pytest-fix
Browse files Browse the repository at this point in the history
fix: support pytest on python 3.12 wrt Fraction formatting change
  • Loading branch information
hgrecco authored Jul 17, 2023
2 parents 4cca8ab + 2bd6677 commit 6c2dda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pint/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def assert_allclose(
if msg is None:
try:
msg = f"Comparing {first!r} and {second!r}. "
except TypeError:
except (TypeError, ValueError):
try:
msg = f"Comparing {first} and {second}. "
except Exception:
Expand Down

0 comments on commit 6c2dda9

Please sign in to comment.