Skip to content

Commit

Permalink
GH-1: Add mac specific configuration for live server
Browse files Browse the repository at this point in the history
On Mac there are different default behaviours for multiprocessing
which is used by live server that leads to Pickling Errors.
pytest-dev/pytest-flask#104
  • Loading branch information
Sparrow0hawk committed Sep 15, 2023
1 parent a85dd9d commit bd9d174
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e/test_app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import pytest
from flask import url_for
from playwright.sync_api import Page, expect
import sys
import multiprocessing

if sys.platform == 'darwin':
multiprocessing.set_start_method("fork")


@pytest.mark.usefixtures("live_server")
Expand Down

0 comments on commit bd9d174

Please sign in to comment.