Charles,
This bug appeared after your change in r5217:
Index: numpytest.py
===================================================================
--- numpytest.py (révision 5216)
+++ numpytest.py (révision 5217)
@@ -527,7 +527,7 @@
all_tests = unittest.TestSuite(suite_list)
return all_tests
- def test(self, level=1, verbosity=1, all=False, sys_argv=[],
+ def test(self, level=1, verbosity=1, all=True, sys_argv=[],
testcase_pattern='.*'):
"""Run Numpy module test suite with level and verbosity.
running
NumpyTest().test(all=False) works, but
NumpyTest().test(all=True) doesn't, that is, it finds 0 test.
David
2008/6/2 Charles R Harris <[EMAIL PROTECTED]>:
>
>
> On Mon, Jun 2, 2008 at 9:20 AM, David Huard <[EMAIL PROTECTED]> wrote:
>
>> 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.:
>>
>> [EMAIL PROTECTED]:~/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: ''
>> [EMAIL PROTECTED]:~/repos/numpy/numpy/tests$
>>
>>
>>
>> 2. It doesn't find tests it used to find:
>>
>> [EMAIL PROTECTED]:~/repos/numpy/numpy$ python tests/test_ctypeslib.py
>>
>
>
> There haven't been many changes to the tests. Could you fool with
> numpy.test(level=10,all=0) and such to see what happens? All=1 is now the
> default.
>
> I've also seen test run some tests twice. I don't know what was up with
> that.
>
> Chuck
>
>
>
> _______________________________________________
> Numpy-discussion mailing list
> [email protected]
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion