Skip to content

Commit 61034ad

Browse files
tulinkryVladimir Kotal
authored andcommitted
using fork as default to create a process
1 parent d576043 commit 61034ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opengrok-tools/src/test/python/test_mirror.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# Portions Copyright (c) 2020, Krystof Tulinger <[email protected]>
2525
#
2626

27+
import multiprocessing
2728
import os
2829
import stat
2930
import sys
@@ -178,6 +179,7 @@ def mock_get(*args, **kwargs):
178179
repo.clone(cloned_repo_path)
179180

180181
with monkeypatch.context() as m:
182+
multiprocessing.set_start_method('fork')
181183
m.setattr(sys, 'argv', ['prog', "-I", project_name])
182184

183185
# With mocking done via pytest it is necessary to patch

0 commit comments

Comments
 (0)