Skip to content

Commit

Permalink
MAINT skip joblib multiprocessing tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Jul 10, 2014
1 parent 3acda36 commit cddf9a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions continuous_integration/exclude_joblib_mp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sklearn.externals.joblib.test.test_parallel
sklearn.externals.joblib.test.test_pool
1 change: 1 addition & 0 deletions continuous_integration/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ fi
if [[ "$COVERAGE" == "true" ]]; then
pip install coverage coveralls
fi
pip install nose-exclude
12 changes: 10 additions & 2 deletions continuous_integration/test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@ python setup.py build_ext --inplace
export SKLEARN_SKIP_NETWORK_TESTS=1

if [[ "$COVERAGE" == "true" ]]; then
make test-coverage
CONVERAGE_FLAGS="--with-coverage"
else
make test-code
CONVERAGE_FLAGS=""
fi

# Disable joblib tests that use multiprocessing on travis as they tend to cause
# random crashes when calling `os.fork()`:
# OSError: [Errno 12] Cannot allocate memory
nosetests -s -v $CONVERAGE_FLAGS --with-noseexclude \
--exclude-test-file=continuous_integration/exclude_joblib_mp.txt \
sklearn

make test-doc test-sphinxext

0 comments on commit cddf9a4

Please sign in to comment.