[Numpy-discussion] Tests fail in SVN r2165

Sasha ndarray at mac.com
Fri Feb 24 12:57:04 EST 2006


Usin python 2.4.2 and latest SVN version I get the following:

> python
Python 2.4.2 (#3, Jan 13 2006, 13:52:39)
[GCC 3.4.4 20050721 (Red Hat 3.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
  Found 3 tests for numpy.lib.getlimits
  Found 30 tests for numpy.core.numerictypes
  Found 11 tests for numpy.core.umath
  Found 8 tests for numpy.lib.arraysetops
  Found 42 tests for numpy.lib.type_check
  Found 83 tests for numpy.core.multiarray
  Found 3 tests for numpy.dft.helper
  Found 27 tests for numpy.core.ma
  Found 1 tests for numpy.core.oldnumeric
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/.../lib/python2.4/site-packages/numpy/__init__.py", line 46, in test
    return NumpyTest('numpy').test(level, verbosity)
  File "/.../lib/python2.4/site-packages/numpy/testing/numpytest.py",
line 422, in test
    suites.extend(self._get_module_tests(module, abs(level), verbosity))
  File "/.../lib/python2.4/site-packages/numpy/testing/numpytest.py",
line 355, in _get_module_tests    self.warn('FAILURE importing tests
for %s' % (mstr(module)))
  File "/.../lib/python2.4/site-packages/numpy/testing/numpytest.py",
line 469, in warn
    from numpy.distutils.misc_util import yellow_text
  File "/.../lib/python2.4/site-packages/numpy/distutils/__init__.py",
line 5, in ?
    import ccompiler
  File "/.../lib/python2.4/site-packages/numpy/distutils/ccompiler.py",
line 12, in ?
    from exec_command import exec_command
  File "/.../lib/python2.4/site-packages/numpy/distutils/exec_command.py",
line 54, in ?
    import tempfile
  File "/.../lib/python2.4/tempfile.py", line 33, in ?
    from random import Random as _Random
ImportError: cannot import name Random


Does anyone see the same?

It looks like it fails while loading test_misc_util, but running that
alone works:

> python lib/python2.4/site-packages/numpy/distutils/tests/test_misc_util.py
  Found 4 tests for __main__
....
----------------------------------------------------------------------
Ran 4 tests in 0.001s




More information about the NumPy-Discussion mailing list