Skip to content

Commit bf1c7d9

Browse files
Will Fengapaszke
authored andcommitted
turn off unsupported multiprocessing methods for Windows
1 parent 2060f35 commit bf1c7d9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/run_test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ $PYCMD test_jit.py $@
4646

4747
echo "Running multiprocessing tests"
4848
$PYCMD test_multiprocessing.py $@
49-
MULTIPROCESSING_METHOD=spawn $PYCMD test_multiprocessing.py $@
50-
MULTIPROCESSING_METHOD=forkserver $PYCMD test_multiprocessing.py $@
49+
# Turn off unsupported methods for Windows
50+
if [[ "$OSTYPE" != "msys" ]]; then
51+
MULTIPROCESSING_METHOD=spawn $PYCMD test_multiprocessing.py $@
52+
MULTIPROCESSING_METHOD=forkserver $PYCMD test_multiprocessing.py $@
53+
fi
5154

5255
echo "Running util tests"
5356
$PYCMD test_utils.py $@

0 commit comments

Comments
 (0)