fix(tests): accept Python 3.14 math error messages (#15645)

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
Alexander Piskun
2026-08-15 22:43:20 +04:00
committed by GitHub
parent a9ab2b62da
commit 37ac9ff44f

View File

@@ -187,7 +187,7 @@ class TestMathExpressionExecute:
self._exec("a / b", a=1, b=0)
def test_sqrt_negative_raises(self):
with pytest.raises(ValueError, match="math domain error"):
with pytest.raises(ValueError, match="math domain error|expected a nonnegative input"):
self._exec("sqrt(a)", a=-1)
def test_overflow_inf_raises(self):