fix(tests): accept Python 3.14 math error messages

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
Alexander Piskun 2026-08-15 15:24:37 +04:00
parent 0f1fa67ad8
commit c236447505
1 changed files with 1 additions and 1 deletions

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):