From c12a967097c67909cc19f681dda653cd41ac4096 Mon Sep 17 00:00:00 2001 From: Akarsh Singhal <83413214+akarshsinghal@users.noreply.github.com> Date: Fri, 28 Nov 2025 23:35:12 -0500 Subject: [PATCH] Add unit test for should_ignore_error to confirm it always returns False while issuing DeprecationWarning --- tests/test_should_ignore_error.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_should_ignore_error.py b/tests/test_should_ignore_error.py index c5287652..f54de624 100644 --- a/tests/test_should_ignore_error.py +++ b/tests/test_should_ignore_error.py @@ -13,3 +13,10 @@ def test_should_ignore_error_multiple_exceptions(error): app = Flask(__name__) with pytest.warns(DeprecationWarning): assert app.should_ignore_error(error) is False + +def test_should_ignore_error_returns_false(): + """Verify that should_ignore_error always returns False.""" + app = Flask(__name__) + with pytest.warns(DeprecationWarning): + result = app.should_ignore_error(Exception()) + assert result is False