[TIP] Fwd: Pinocchio 0.1 and nose 0.10b

jason pellerin jpellerin at gmail.com
Tue Sep 11 07:15:58 PDT 2007


Once again I have failed to send something to the list when I meant to...

---------- Forwarded message ----------
From: jason pellerin <jpellerin at gmail.com>
Date: Sep 11, 2007 10:15 AM
Subject: Re: [TIP] Pinocchio 0.1 and nose 0.10b
To: Lawrence Oluyede <l.oluyede at gmail.com>


[snipped a bit about how pinnochio 0.1 doesn't work with nose 0.10b1]

> "/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'

[...]

> Is it because nose has changed the plugins hooks?

Not exactly. Plugins for 0.9 that don't access nose internals should
work fine with 0.10; there's an adaptation layer that wraps 0.9
plugins to make them compatible.

But that can only go so far. As you're seeing here, when a plugin
relies on details of nose internals, and those have changed (as
basically everything regarding test loading and representation of
tests and suites has), the plugin is going to break. I don't see any
way to fix this in nose -- the internals of 0.10 are just too
different from 0.9. :(

Ideas, suggestions and patches are of course *very* welcome!

JP



More information about the testing-in-python mailing list