[SciPy-user] Running scipy.test on recent SVN build
Robert Kern
robert.kern at gmail.com
Fri Mar 21 16:38:12 EDT 2008
On Fri, Mar 21, 2008 at 3:30 PM, Joshua Lippai <discerptor at gmail.com> wrote:
> Hello all,
>
> Last night I tried installing scipy (on OS X 10.5.2) and I was
> surprised to find that nose is now required to run scipy.test. I
> installed it successfully through easy_install, but now it still won't
> run the test, instead producing the following error:
>
> >>> scipy.test(1,10)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/testing/nosetester.py",
> line 115, in test
> argv = self._test_argv(label, verbose, extra_argv)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/testing/nosetester.py",
> line 98, in _test_argv
> raise TypeError, 'Selection label should be a string'
> TypeError: Selection label should be a string
>
> Has anyone experienced this as well or now what's going on and how to
> fix it so I can run scipy.test? Much thanks in advance.
In [6]: scipy.test?
Type: instancemethod
Base Class: <type 'instancemethod'>
String Form: <bound method NoseTester.test of
<scipy.testing.nosetester.NoseTester object at 0x1b
2d930>>
Namespace: Interactive
File: /Users/rkern/svn/scipy/scipy/testing/nosetester.py
Definition: scipy.test(self, label='fast', verbose=1,
extra_argv=None, doctests=False)
Docstring:
Run tests for module using nose
Parameters
----------
label : {'fast', 'full', '', attribute identifer}
Identifies test to run. This can be a string to pass to
the nosetests executable with the'-A' option, or one of
several special values.
Special values are:
'fast' - the default - which corresponds to
nosetests -A option of
'not slow'.
'full' - fast (as above) and slow test as in
no -A option to nosetests - same as ''
None or '' - run all tests
attribute_identifier - string passed directly to
nosetests as '-A'
verbose : integer
verbosity value for test outputs, 1-10
extra_argv : list
List with any extra args to pass to nosetests
doctests : boolean
If True, run doctests in module, default False
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-User
mailing list