[SciPy-dev] Nose tests - merged

Nils Wagner nwagner@iam.uni-stuttgart...
Sat Jan 12 05:24:40 CST 2008


On Sat, 12 Jan 2008 05:07:06 -0600
  "Nathan Bell" <wnbell@gmail.com> wrote:
> On Jan 12, 2008 4:29 AM, Fernando Perez 
><fperez.net@gmail.com> wrote:
>>
>> Looks good here (same 6 errors as yesterday with 
>>test('full'), but
>> those can be looked at later).
>>
> 
> Similar results here.  Great work!
> 
> I like the separation of benchmarks and unittests.  I'll 
>update my
> sparse benchmarks accordingly.
> 
> 
> -- 
> Nathan Bell wnbell@gmail.com
> http://graphics.cs.uiuc.edu/~wnbell/
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev

  
How do I use the new test functionality in scipy ?

>>> import scipy
>>> scipy.test(1)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/testing/nosetester.py", 
line 54, in test
     nose.run(argv=argv)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/core.py", 
line 368, in run
     return TestProgram(*arg, **kw).success
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/core.py", 
line 219, in __init__
     argv=argv, testRunner=testRunner, 
testLoader=testLoader)
   File "/usr/lib64/python2.5/unittest.py", line 758, in 
__init__
     self.parseArgs(argv)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/core.py", 
line 270, in parseArgs
     self.createTests()
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/core.py", 
line 284, in createTests
     self.test = 
self.testLoader.loadTestsFromNames(self.testNames)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/loader.py", 
line 422, in loadTestsFromNames
     return unittest.TestLoader.loadTestsFromNames(self, 
names, module)
   File "/usr/lib64/python2.5/unittest.py", line 556, in 
loadTestsFromNames
     suites = [self.loadTestsFromName(name, module) for 
name in names]
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/loader.py", 
line 377, in loadTestsFromName
     module, discovered=discovered)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/loader.py", 
line 282, in loadTestsFromModule
     if self.selector.wantClass(test):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/selector.py", 
line 76, in wantClass
     plug_wants = self.plugins.wantClass(cls)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/plugins/manager.py", 
line 81, in __call__
     return self.call(*arg, **kw)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/plugins/manager.py", 
line 145, in simple
     result = meth(*arg, **kw)
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/plugins/attrib.py", 
line 197, in wantClass
     if self.validateAttrib(cls_attr) is not False:
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/plugins/attrib.py", 
line 162, in validateAttrib
     if not value(key, attribs):
   File 
"/usr/local/lib64/python2.5/site-packages/nose-0.10.1-py2.5.egg/nose/plugins/attrib.py", 
line 116, in eval_in_context
     return eval(expr, None, ContextHelper(attribs))
TypeError: eval() arg 1 must be a string or code object

Nils


More information about the Scipy-dev mailing list