Skip to content

Commit 8c873b0

Browse files
fix circleci 3.9 test
1 parent f9e566f commit 8c873b0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_forking.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33

44
from sqlmesh import Context
55
from sqlmesh.core.model import schema
6+
import multiprocessing as mp
67

78

89
pytestmark = pytest.mark.isolated
910

1011

1112
def test_parallel_load(assert_exp_eq, mocker):
12-
mocker.patch("sqlmesh.core.constants.MAX_FORK_WORKERS", 2)
13+
if hasattr(os, "fork") and not mp.current_process().daemon:
14+
mocker.patch("sqlmesh.core.constants.MAX_FORK_WORKERS", 2)
15+
1316
spy = mocker.spy(schema, "_update_model_schemas")
1417
context = Context(paths="examples/sushi")
1518

0 commit comments

Comments
 (0)