scikit-learn/scikit-learn — pull request #3361 by ogrisel (2014-07-10 12:13:32+00:00)
Title: [MRG] skip joblib multiprocessing tests on travis

The travis environment seems to be quite heavily loaded sometimes to the point that process forks cause random test errors such as the following:

```
======================================================================

ERROR: sklearn.externals.joblib.test.test_parallel.test_simple_parallel(None,)

----------------------------------------------------------------------

Traceback (most recent call last):

File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/test/test_parallel.py", line 84, in check_simple_parallel
Parallel(n_jobs=n_jobs)(delayed(square)(x) for x in X))
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 604, in __call__
self._pool = MemmapingPool(n_jobs, **poolargs)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/pool.py", line 561, in __init__
super(MemmapingPool, self).__init__(**poolargs)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/pool.py", line 400, in __init__
super(PicklingPool, self).__init__(**poolargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 136, in __init__
self._repopulate_pool()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 199, in _repopulate_pool
w.start()
File "/usr/lib/python2.7/multiprocessing/process.py", line 130, in start
self._popen = Popen(self)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 120, in __init__
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
```

The following skips the numerous embedded joblib tests that call `os.fork()` when run on travis. Note that upstream joblib tests are also running on travis but as there are fewer pull requests on the joblib github project this is a much less frequent issue there.