<p dir="auto">With scipy 0.13.0.dev-7c6d92e, I get the following failing tests. It looks like we have different definitions of connect components. I haven't had time to investigate whether this is trivial or an actual problem.</p>
<pre class="notranslate">======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/volatile/varoquau/dev/scikit-learn/sklearn/feature_extraction/tests/test_image.py", line 63, in test_connect_regions
    assert_equal(ndimage.label(mask)[1], connected_components(graph)[0])
AssertionError: 777 != 767
    '777 != 767' = '%s != %s' % (safe_repr(777), safe_repr(767))
    '777 != 767' = self._formatMessage('777 != 767', '777 != 767')
&gt;&gt;  raise self.failureException('777 != 767')
    

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/volatile/varoquau/dev/scikit-learn/sklearn/feature_extraction/tests/test_image.py", line 70, in test_connect_regions_with_grid
    assert_equal(ndimage.label(mask)[1], connected_components(graph)[0])
AssertionError: 777 != 767
    '777 != 767' = '%s != %s' % (safe_repr(777), safe_repr(767))
    '777 != 767' = self._formatMessage('777 != 767', '777 != 767')
&gt;&gt;  raise self.failureException('777 != 767')
</pre>
<p dir="auto">I appreciate any aid in this issue, and apologize I've missed finding it in a previous issue. I've been getting the following message (I'm running on Mac OS X 10.7):</p>
<p dir="auto">Here is the full traceback:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ nosetests sklearn -exe
....................S........................................../usr/local/lib/python2.7/site-packages/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected.
  warnings.warn(&quot;Graph is not fully connected, spectral embedding&quot;
...........SS.........F.....SE................................................S.........................................................S.........................................SSS....................../usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object &lt;functools.partial object at 0x10a829788&gt;, ignore list will not work.
  nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF......................................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSS....S....S...................................................................................................................................
======================================================================
ERROR: test suite for &lt;module 'sklearn.datasets.tests.test_lfw' from '/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.pyc'&gt;
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/local/lib/python2.7/site-packages/nose/suite.py&quot;, line 208, in run
    self.setUp()
  File &quot;/usr/local/lib/python2.7/site-packages/nose/suite.py&quot;, line 291, in setUp
    self.setupContext(ancestor)
  File &quot;/usr/local/lib/python2.7/site-packages/nose/suite.py&quot;, line 314, in setupContext
    try_run(context, names)
  File &quot;/usr/local/lib/python2.7/site-packages/nose/util.py&quot;, line 469, in try_run
    return func()
  File &quot;/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.py&quot;, line 72, in setup_module
    imsave(file_path, uniface)
  File &quot;/Users/admin/src/scipy/scipy/misc/pilutil.py&quot;, line 160, in imsave
    im.save(name)
  File &quot;/usr/local/lib/python2.7/site-packages/PIL/Image.py&quot;, line 1439, in save
    save_handler(self, fp, filename)
  File &quot;/usr/local/lib/python2.7/site-packages/PIL/JpegImagePlugin.py&quot;, line 471, in _save
    ImageFile._save(im, fp, [(&quot;jpeg&quot;, (0,0)+im.size, 0, rawmode)])
  File &quot;/usr/local/lib/python2.7/site-packages/PIL/ImageFile.py&quot;, line 495, in _save
    e = Image._getencoder(im.mode, e, a, im.encoderconfig)
  File &quot;/usr/local/lib/python2.7/site-packages/PIL/Image.py&quot;, line 401, in _getencoder
    raise IOError(&quot;encoder %s not available&quot; % encoder_name)
IOError: encoder jpeg not available

======================================================================
FAIL: sklearn.datasets.tests.test_base.test_load_sample_image
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest
    self.test(*self.arg)
  File &quot;/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_base.py&quot;, line 142, in test_load_sample_image
    assert_equal(china.dtype, 'uint8')
AssertionError: dtype('O') != 'uint8'

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest
    self.test(*self.arg)
  File &quot;/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py&quot;, line 63, in test_connect_regions
    assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0])
AssertionError: 777 != 767

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest
    self.test(*self.arg)
  File &quot;/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py&quot;, line 70, in test_connect_regions_with_grid
    assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0])
AssertionError: 777 != 767

----------------------------------------------------------------------
Ran 1595 tests in 81.893s

FAILED (SKIP=15, errors=1, failures=3)"><pre class="notranslate"><code class="notranslate">$ nosetests sklearn -exe
....................S........................................../usr/local/lib/python2.7/site-packages/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected.
  warnings.warn("Graph is not fully connected, spectral embedding"
...........SS.........F.....SE................................................S.........................................................S.........................................SSS....................../usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object &lt;functools.partial object at 0x10a829788&gt;, ignore list will not work.
  nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF......................................................................................S......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSS....S....S...................................................................................................................................
======================================================================
ERROR: test suite for &lt;module 'sklearn.datasets.tests.test_lfw' from '/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.pyc'&gt;
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/usr/local/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/usr/local/lib/python2.7/site-packages/nose/util.py", line 469, in try_run
    return func()
  File "/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_lfw.py", line 72, in setup_module
    imsave(file_path, uniface)
  File "/Users/admin/src/scipy/scipy/misc/pilutil.py", line 160, in imsave
    im.save(name)
  File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 1439, in save
    save_handler(self, fp, filename)
  File "/usr/local/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 471, in _save
    ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
  File "/usr/local/lib/python2.7/site-packages/PIL/ImageFile.py", line 495, in _save
    e = Image._getencoder(im.mode, e, a, im.encoderconfig)
  File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 401, in _getencoder
    raise IOError("encoder %s not available" % encoder_name)
IOError: encoder jpeg not available

======================================================================
FAIL: sklearn.datasets.tests.test_base.test_load_sample_image
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/lib/python2.7/site-packages/sklearn/datasets/tests/test_base.py", line 142, in test_load_sample_image
    assert_equal(china.dtype, 'uint8')
AssertionError: dtype('O') != 'uint8'

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 63, in test_connect_regions
    assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0])
AssertionError: 777 != 767

======================================================================
FAIL: sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/lib/python2.7/site-packages/sklearn/feature_extraction/tests/test_image.py", line 70, in test_connect_regions_with_grid
    assert_equal(ndimage.label(mask)[1], cs_graph_components(graph)[0])
AssertionError: 777 != 767

----------------------------------------------------------------------
Ran 1595 tests in 81.893s

FAILED (SKIP=15, errors=1, failures=3)
</code></pre></div>