diff --git a/pint/testing.py b/pint/testing.py index 126a39fc8..f2a570a59 100644 --- a/pint/testing.py +++ b/pint/testing.py @@ -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: