[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


Comment:

 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:
 {{{
 .../numpy/distutils/tests/f2py_ext/tests/
 }}}
 The nose docs at
 http://somethingaboutorange.com/mrl/projects/nose/1.0.0/finding_tests.html
 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
 test_misc_util.pyc
 f2py_f90_ext            setup.py                test_fcompiler_gnu.pyc
 test_npy_pkg_config.py
 gen_ext                 swig_ext                test_misc_util.py
 test_npy_pkg_config.pyc
 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)
     config.add_subpackage('pyrex_ext')
     config.add_subpackage('f2py_ext')
     #config.add_subpackage('f2py_f90_ext')
     config.add_subpackage('swig_ext')
     config.add_subpackage('gen_ext')
     return config

 if __name__ == "__main__":
     from numpy.distutils.core import setup
     setup(configuration=configuration)
 }}}

 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
 closed.

-- 
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