We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b596c commit 739b8c2Copy full SHA for 739b8c2
testing/python/approx.py
@@ -1015,7 +1015,7 @@ def __len__(self):
1015
expected_repr = "approx([1 ± 1.0e-06, 2 ± 2.0e-06, 3 ± 3.0e-06, 4 ± 4.0e-06])"
1016
assert repr(approx(expected)) == expected_repr
1017
1018
- def test_decimal_approx_repr(self, monkeypatch):
+ def test_decimal_approx_repr(self, monkeypatch) -> None:
1019
monkeypatch.setitem(decimal.getcontext().traps, decimal.FloatOperation, True)
1020
approx_obj = pytest.approx(decimal.Decimal("2.60"))
1021
print(f"Attempting to represent pytest.approx(Decimal): {approx_obj}")
0 commit comments