Skip to content

Commit 62b8f63

Browse files
committed
prevent intermittent broken_pipe errors with threaded=True
1 parent 5048d0c commit 62b8f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_flask/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, app, port):
5757
def start(self):
5858
"""Start application in a separate process."""
5959
def worker(app, port):
60-
app.run(port=port, use_reloader=False)
60+
app.run(port=port, use_reloader=False, threaded=True)
6161
self._process = multiprocessing.Process(
6262
target=worker,
6363
args=(self.app, self.port)

0 commit comments

Comments
 (0)