[Numpy-discussion] Tests fail in SVN r2165

Pearu Peterson pearu at scipy.org
Fri Feb 24 15:23:03 CST 2006


On Fri, 24 Feb 2006, Sasha wrote:

> I've located the culprit.  Once I revert numpy/core/__init__.py to
> 2164, tests pass.
>
> The change appears to postpone the import of NumpyTest:
>> svn diff -r 2164:2165 numpy/core/__init__.py
> Index: numpy/core/__init__.py
> ===================================================================
> --- numpy/core/__init__.py      (revision 2164)
> +++ numpy/core/__init__.py      (revision 2165)
> @@ -25,5 +25,6 @@
> __all__ += rec.__all__
> __all__ += char.__all__
>
> -from numpy.testing import ScipyTest
> -test = ScipyTest().test
> +def test(level=1, verbosity=1):
> +    from numpy.testing import NumpyTest
> +    return NumpyTest().test(level, verbosity)
>
> <http://projects.scipy.org/scipy/numpy/changeset/2165#file2>
>
> I don't understand why this causes problems on my system, but it does.  Pearu?

Could you try svn update and reinstall of numpy now? This error could be 
due to the fact that numpy.distutils.__init__ imported numpy.testing while
importing numpy.__init__ was not finished yet.

Pearu




More information about the Numpy-discussion mailing list