diff --git a/tests/test_wrapt_timeout_decorator.py b/tests/test_wrapt_timeout_decorator.py index a340056..8d316d5 100644 --- a/tests/test_wrapt_timeout_decorator.py +++ b/tests/test_wrapt_timeout_decorator.py @@ -55,7 +55,7 @@ def can_not_be_pickled(x: float) -> None: def test_timeout_class_method(use_signals: bool) -> None: - with pytest.raises(TimeoutError, match=r"Function f timed out after 0\.3 seconds"): + with pytest.raises(TimeoutError, match=r"Function f1 timed out after 0\.3 seconds"): ClassTest1().f1(use_signals=use_signals) assert ClassTest1().f1(dec_timeout="instance.x", dec_allow_eval=True, use_signals=use_signals) is None