[TIP] Pinocchio 0.1 and nose 0.10b

Lawrence Oluyede l.oluyede at gmail.com
Tue Sep 11 01:49:10 PDT 2007


I'm trying to use pinocchio with the latest nose version but it
doesn't seem to work.
This is a sample error I get with the "spec" plugin:

lawrence at ubuntuvm:~$ nosetests --with-spec
======================================================================
ERROR: tests.test_foo
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/case.py",
line 142, in run
    self.runTest(result)
  File "/usr/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/case.py",
line 160, in runTest
    test(result)
  File "unittest.py", line 281, in __call__
    return self.run(*args, **kwds)
  File "unittest.py", line 247, in run
    result.startTest(self)
  File "/usr/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/proxy.py",
line 134, in startTest
    self.plugins.startTest(self.test)
  File "/usr/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plugins/manager.py",
line 79, in __call__
    return self.call(*arg, **kw)
  File "/usr/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plugins/manager.py",
line 135, in simple
    result = meth(*arg, **kw)
  File "/usr/lib/python2.4/site-packages/nose-0.10.0b1-py2.4.egg/nose/plugins/manager.py",
line 275, in startTest
    return self.plugin.startTest(test.test)
  File "build/bdist.linux-i686/egg/pinocchio/spec.py", line 225, in startTest
AttributeError: 'module' object has no attribute 'TestClass'

----------------------------------------------------------------------
Ran 0 tests in 0.070s

Is it because nose has changed the plugins hooks?

-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair



More information about the testing-in-python mailing list