From eb41e7e417cbf53d19517e356381423cfd256c2f Mon Sep 17 00:00:00 2001 From: Grey Li Date: Sun, 3 Jan 2021 13:55:10 +0800 Subject: [PATCH] Silence pytest warnings for exception propagation test --- tests/test_basic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_basic.py b/tests/test_basic.py index 869ac13f..f4decf0c 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1520,6 +1520,8 @@ def test_server_name_subdomain(): assert rv.data == b"subdomain" +@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning") +@pytest.mark.filterwarnings("ignore::pytest.PytestUnhandledThreadExceptionWarning") def test_exception_propagation(app, client): def apprunner(config_key): @app.route("/")