[NumPy-Tickets] [NumPy] #1089: numpy.test does not find all tests

NumPy Trac numpy-tickets@scipy....
Thu Mar 3 04:22:49 CST 2011

#1089: numpy.test does not find all tests
 Reporter:  cdavid         |       Owner:  somebody      
     Type:  defect         |      Status:  needs_decision
 Priority:  normal         |   Milestone:  1.5.1         
Component:  numpy.testing  |     Version:                
 Keywords:                 |  
Changes (by rgommers):

  * status:  new => needs_decision


 np.test() gives me 3213 tests run with current master, np.test('full')
 3227. Running nosetests gives me 3233. Comparing the difference between
 verbose outputs, after some cleaning due to a few run-specific printed
 messages like memory locations, the difference between nosetests and
 np.test() is exactly the 14 tests that are run extra for np.test('full'),
 plus the six tests that Pauli pasted above as failures.

 Those six are probably not run because of the strange path:
 The nose docs at
 say: "Be aware that plugins and command line options can change any of
 those rules." So this must be what's happening.

 The distutils/tests/ folder has a setup.py in it which is weird, since
 that dir is not a module but in that setup.py subpackages are defined
 (with those six tests in them):
 Ralf-Gommerss-iMac:tests rgommers$ ls
 f2py_ext                pyrex_ext               test_fcompiler_gnu.py
 f2py_f90_ext            setup.py                test_fcompiler_gnu.pyc
 gen_ext                 swig_ext                test_misc_util.py
 Ralf-Gommerss-iMac:tests rgommers$ cat setup.py
 #!/usr/bin/env python
 def configuration(parent_package='',top_path=None):
     from numpy.distutils.misc_util import Configuration
     config = Configuration('testnumpydistutils',parent_package,top_path)
     return config

 if __name__ == "__main__":
     from numpy.distutils.core import setup

 So final question is: what are those tests doing there and should they be
 run by np.test('full'). I'm guessing no. In that case this ticket can be

Ticket URL: <http://projects.scipy.org/numpy/ticket/1089#comment:8>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list