Issue 1:
On Ubuntu 12.04

python -c "import sklearn; sklearn.test()"

Running unit tests and doctests for sklearn

/usr/local/lib/python2.7/dist-packages/nose/util.py:14: DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.

from compiler.consts import CO_GENERATOR

NumPy version 1.6.1

NumPy is installed in /usr/lib/python2.7/dist-packages/numpy

Python version 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3]

nose version 1.2.1

I: Seeding RNGs with 756615311

......................................................S.2.17927109077 55.4082834902

........None

..............EE..SS........................................................S.......................................................SEE....................................................../usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0xaf2cfcc>, ignore list will not work.

nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),

.........................................................................................________________________________________________________________________________

test_memory setup

test_memory teardown

..________________________________________________________________________________

test_memory setup

..........................................................................................................................________________________________________________________________________________

test_memory teardown

.________________________________________________________________________________

setup numpy_pickle

.....................................Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.del of memmap(1.7066903169e-313)> ignored

Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.del of memmap(1.7065495094e-313)> ignored

/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_numpy_pickle.py:182: Warning: file "/tmp/tmpevHBa9/test.pkl30" appears to be a zip, ignoring mmap_mode "r" flag passed

numpy_pickle.load(this_filename, mmap_mode='r')

Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.del of memmap(1.7065550512e-313)> ignored

.....________________________________________________________________________________

teardown numpy_pickle

............An unexpected error occurred while tokenizing input

The following traceback may be corrupted or invalid

The error message is: ('EOF in multi-line statement', (39, 0))

......................................................................................................EE........S........................---

.........................................................................................................................................................................................................................................................................................................................................................................EEE.................FE............................................................................................................SSS....S....S............................................................................................EE

ERROR: Doctest: sklearn.datasets.base.load_sample_image

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.datasets.base.load_sample_images

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.ensemble.gradient_boosting.GradientBoostingClassifier

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.ensemble.gradient_boosting.GradientBoostingRegressor

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.linear_model.randomized_l1.RandomizedLasso

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.linear_model.randomized_l1.RandomizedLogisticRegression

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.tree.tree.DecisionTreeClassifier

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.tree.tree.DecisionTreeRegressor

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.tree.tree.export_graphviz

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.utils.extmath.pinvh

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn._NoseTester.test

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

ERROR: Doctest: sklearn.test

Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown

delattr(builtin_mod, self._result_var)

AttributeError: _

FAIL: Doctest: sklearn.utils.extmath.pinvh

Traceback (most recent call last):

File "/usr/lib/python2.7/doctest.py", line 2201, in runTest

raise self.failureException(self.format_failure(new.getvalue()))

AssertionError: Failed doctest test for sklearn.utils.extmath.pinvh

File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 302, in pinvh

File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 336, in sklearn.utils.extmath.pinvh

Failed example:

B = pinvh(a)

Exception raised:

Traceback (most recent call last):

File "/usr/lib/python2.7/doctest.py", line 1289, in __run

compileflags, 1) in test.globs

File "<doctest sklearn.utils.extmath.pinvh[3]>", line 1, in

B = pinvh(a)

NameError: name 'pinvh' is not defined

File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 337, in sklearn.utils.extmath.pinvh

Failed example:

allclose(a, dot(a, dot(B, a)))

Exception raised:

Traceback (most recent call last):

File "/usr/lib/python2.7/doctest.py", line 1289, in __run

compileflags, 1) in test.globs

File "<doctest sklearn.utils.extmath.pinvh[4]>", line 1, in

allclose(a, dot(a, dot(B, a)))

NameError: name 'B' is not defined

File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 339, in sklearn.utils.extmath.pinvh

Failed example:

allclose(B, dot(B, dot(a, B)))

Exception raised:

Traceback (most recent call last):

File "/usr/lib/python2.7/doctest.py", line 1289, in __run

compileflags, 1) in test.globs

File "<doctest sklearn.utils.extmath.pinvh[5]>", line 1, in

allclose(B, dot(B, dot(a, B)))

NameError: name 'B' is not defined

Ran 1255 tests in 85.175s

FAILED (SKIP=11, errors=12, failures=1)

Issue 2:
On Ubuntu 12.04

python -c "import sklearn; sklearn.test()"
Running unit tests and doctests for sklearn
/usr/local/lib/python2.7/dist-packages/nose/util.py:14: DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.
from compiler.consts import CO_GENERATOR
NumPy version 1.6.1
NumPy is installed in /usr/lib/python2.7/dist-packages/numpy
Python version 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3]
nose version 1.2.1
I: Seeding RNGs with 756615311
......................................................S.2.17927109077 55.4082834902
........None
..............EE..SS........................................................S.......................................................SEE....................................................../usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object , ignore list will not work.
nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
.........................................................................................________________________________________________________________________________
test_memory setup
________________________________________________________________________________
________________________________________________________________________________
test_memory teardown
________________________________________________________________________________
..________________________________________________________________________________
test_memory setup
________________________________________________________________________________
..........................................................................................................................________________________________________________________________________________
test_memory teardown
________________________________________________________________________________
.________________________________________________________________________________
setup numpy_pickle
________________________________________________________________________________
.....................................Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in ignored
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in ignored
/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_numpy_pickle.py:182: Warning: file "/tmp/tmpevHBa9/test.pkl30" appears to be a zip, ignoring mmap_mode "r" flag passed
numpy_pickle.load(this_filename, mmap_mode='r')
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in ignored
.....________________________________________________________________________________
teardown numpy_pickle
________________________________________________________________________________
............An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (39, 0))

......................................................................................................EE........S........................---
.........................................................................................................................................................................................................................................................................................................................................................................EEE.................FE............................................................................................................SSS....S....S............................................................................................EE
======================================================================
ERROR: Doctest: sklearn.datasets.base.load_sample_image
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.datasets.base.load_sample_images
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.ensemble.gradient_boosting.GradientBoostingClassifier
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.ensemble.gradient_boosting.GradientBoostingRegressor
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.linear_model.randomized_l1.RandomizedLasso
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.linear_model.randomized_l1.RandomizedLogisticRegression
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.tree.tree.DecisionTreeClassifier
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.tree.tree.DecisionTreeRegressor
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.tree.tree.export_graphviz
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.utils.extmath.pinvh
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn._NoseTester.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
ERROR: Doctest: sklearn.test
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/doctests.py", line 419, in tearDown
delattr(builtin_mod, self._result_var)
AttributeError: _

======================================================================
FAIL: Doctest: sklearn.utils.extmath.pinvh
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2201, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for sklearn.utils.extmath.pinvh
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 302, in pinvh

----------------------------------------------------------------------
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 336, in sklearn.utils.extmath.pinvh
Failed example:
B = pinvh(a)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "", line 1, in
B = pinvh(a)
NameError: name 'pinvh' is not defined
----------------------------------------------------------------------
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 337, in sklearn.utils.extmath.pinvh
Failed example:
allclose(a, dot(a, dot(B, a)))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "", line 1, in
allclose(a, dot(a, dot(B, a)))
NameError: name 'B' is not defined
----------------------------------------------------------------------
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/extmath.py", line 339, in sklearn.utils.extmath.pinvh
Failed example:
allclose(B, dot(B, dot(a, B)))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1289, in __run
compileflags, 1) in test.globs
File "", line 1, in
allclose(B, dot(B, dot(a, B)))
NameError: name 'B' is not defined

----------------------------------------------------------------------
Ran 1255 tests in 85.175s

FAILED (SKIP=11, errors=12, failures=1)