Merge pull request #3861 from greyli/fix-pytest
Silence pytest warnings for exception propagation test
This commit is contained in:
commit
c676c2c4f3
3 changed files with 4 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ pre-commit==2.9.3 # via -r requirements/dev.in
|
|||
py==1.9.0 # via pytest, tox
|
||||
pygments==2.7.2 # via sphinx, sphinx-tabs
|
||||
pyparsing==2.4.7 # via packaging
|
||||
pytest==6.1.2 # via -r requirements/tests.in
|
||||
pytest==6.2.1 # via -r requirements/tests.in
|
||||
python-dotenv==0.15.0 # via -r requirements/tests.in
|
||||
pytz==2020.1 # via babel
|
||||
pyyaml==5.3.1 # via pre-commit
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ packaging==20.8 # via pytest
|
|||
pluggy==0.13.1 # via pytest
|
||||
py==1.9.0 # via pytest
|
||||
pyparsing==2.4.7 # via packaging
|
||||
pytest==6.1.2 # via -r requirements/tests.in
|
||||
pytest==6.2.1 # via -r requirements/tests.in
|
||||
python-dotenv==0.15.0 # via -r requirements/tests.in
|
||||
toml==0.10.2 # via pytest
|
||||
|
|
|
|||
|
|
@ -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("/")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue