Skip to content
Snippets Groups Projects
Commit 2aed55dc authored by Jonas Haag's avatar Jonas Haag
Browse files

Tests: Fix server thread termination on Python 3.5

parent a4b72b44
No related branches found
No related tags found
Loading
...@@ -30,6 +30,7 @@ def serve(*args, **kwargs): ...@@ -30,6 +30,7 @@ def serve(*args, **kwargs):
app = klaus.make_app(ALL_TEST_REPOS, TEST_SITE_NAME, *args, **kwargs) app = klaus.make_app(ALL_TEST_REPOS, TEST_SITE_NAME, *args, **kwargs)
server = werkzeug.serving.make_server("localhost", 9876, app) server = werkzeug.serving.make_server("localhost", 9876, app)
thread = threading.Thread(target=server.serve_forever) thread = threading.Thread(target=server.serve_forever)
thread.daemon = True
thread.start() thread.start()
try: try:
yield yield
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment