Skip to content

Commit 14d49df

Browse files
committed
use function instead of lambda.
1 parent 794cec8 commit 14d49df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_flask/fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def __init__(self, app, port):
5656

5757
def start(self):
5858
"""Start application in a separate process."""
59-
worker = lambda app, port: app.run(port=port, use_reloader=False)
59+
def worker(app, port):
60+
app.run(port=port, use_reloader=False)
6061
self._process = multiprocessing.Process(
6162
target=worker,
6263
args=(self.app, self.port)

0 commit comments

Comments
 (0)