[TIP] always call teardownX even if setupX fails?
robertc at robertcollins.net
Thu Jan 28 04:47:01 PST 2010
On Thu, 2010-01-28 at 13:10 +0100, holger krekel wrote:
> not calling teardown seemed slightly easier to implement ... i can
> a bit harder though :)
> However, I haven't see your example pattern with py.test usages yet.
> Is this a an example from actual code?
Broadly yes. Usually seen more like this in fact:
setUp(): does stuff
setUp(): check if we should skip
> And if so do you have have and use it in setup_module and setup_class
> - alike
I don't use such methods, so no (see prior conversation about decoupling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
More information about the testing-in-python