Skip to content

Commit 739b8c2

Browse files
authored
Update testing/python/approx.py
1 parent 10b596c commit 739b8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/python/approx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def __len__(self):
10151015
expected_repr = "approx([1 ± 1.0e-06, 2 ± 2.0e-06, 3 ± 3.0e-06, 4 ± 4.0e-06])"
10161016
assert repr(approx(expected)) == expected_repr
10171017

1018-
def test_decimal_approx_repr(self, monkeypatch):
1018+
def test_decimal_approx_repr(self, monkeypatch) -> None:
10191019
monkeypatch.setitem(decimal.getcontext().traps, decimal.FloatOperation, True)
10201020
approx_obj = pytest.approx(decimal.Decimal("2.60"))
10211021
print(f"Attempting to represent pytest.approx(Decimal): {approx_obj}")

0 commit comments

Comments
 (0)