Skip to content

Commit

Permalink
tests: Ignore Flask/Werkzeug ResourceWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed May 26, 2022
1 parent 4960c18 commit 64e8c71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/end2end/fixtures/webserver_sub_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import sys
import logging
import pathlib
import warnings

import flask

Expand Down Expand Up @@ -70,6 +71,14 @@ def turn_off_logging():


def main():
for module in ["werkzeug.serving", "flask.app"]:
warnings.filterwarnings(
"ignore",
r"unclosed <socket\.socket",
ResourceWarning,
module,
)

end2end_dir = pathlib.Path(__file__).resolve().parents[1]
ssl_dir = end2end_dir / 'data' / 'ssl'
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
Expand Down

0 comments on commit 64e8c71

Please sign in to comment.