Skip to content

Commit

Permalink
Better reporting in subtest
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Jan 19, 2024
1 parent 3cffd59 commit ad0cd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pint/testsuite/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_latex_escaping(self, subtests):
}.items():
with subtests.test(spec):
ureg.default_format = spec
assert f"{x}" == result, f"Failed for {spec}, {result}"
assert f"{x}" == result, f"Failed for {spec}, got {x} expected {result}"
# no '#' here as it's a comment char when define()ing new units
ureg.define(r"weirdunit = 1 = \~_^&%$_{}")
x = ureg.Unit(UnitsContainer(weirdunit=1))
Expand Down

0 comments on commit ad0cd73

Please sign in to comment.