fix(tests): accept Python 3.14 math error messages (#15645)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
parent
a9ab2b62da
commit
37ac9ff44f
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue