[Numpy-discussion] NumpyTest problem

David Huard david.huard@gmail....
Mon Jun 2 10:20:36 CDT 2008


Hi,

There are 2 problems with NumpyTest

1. It fails if the command is given the file name only (without a directory
structure)

E.g.:

huardda@angus:~/repos/numpy/numpy/tests$ python test_ctypeslib.py
Traceback (most recent call last):
  File "test_ctypeslib.py", line 87, in <module>
    NumpyTest().run()
  File "/usr/lib64/python2.5/site-packages/numpy/testing/numpytest.py", line
655, in run
    testcase_pattern=options.testcase_pattern)
  File "/usr/lib64/python2.5/site-packages/numpy/testing/numpytest.py", line
575, in test
    level, verbosity)
  File "/usr/lib64/python2.5/site-packages/numpy/testing/numpytest.py", line
453, in _test_suite_from_all_tests
    importall(this_package)
  File "/usr/lib64/python2.5/site-packages/numpy/testing/numpytest.py", line
681, in importall
    for subpackage_name in os.listdir(package_dir):
OSError: [Errno 2] No such file or directory: ''
huardda@angus:~/repos/numpy/numpy/tests$



2. It doesn't find tests it used to find:

huardda@angus:~/repos/numpy/numpy$ python tests/test_ctypeslib.py

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
huardda@angus:~/repos/numpy/numpy$

Cheers,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080602/ac976b86/attachment.html 


More information about the Numpy-discussion mailing list