From 37ac9ff44ffd1e4cc4b481cee550ced67608ec3a Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Sat, 15 Aug 2026 22:43:20 +0400 Subject: [PATCH] fix(tests): accept Python 3.14 math error messages (#15645) Signed-off-by: Alexander Piskun --- tests-unit/comfy_extras_test/nodes_math_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests-unit/comfy_extras_test/nodes_math_test.py b/tests-unit/comfy_extras_test/nodes_math_test.py index 030accc5e..20eef1f9a 100644 --- a/tests-unit/comfy_extras_test/nodes_math_test.py +++ b/tests-unit/comfy_extras_test/nodes_math_test.py @@ -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):