[TIP] cleanUp for unittest
John Arbash Meinel
john at arbash-meinel.com
Fri Apr 3 18:48:54 PDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Douglas Philips wrote:
> On or about 2009 Apr 3, at 6:27 PM, Robert Collins indited:
>> I'd like to note that having it as a method gives the opportunity to
>> different things in subclasses and that can be useful (and it also
>> allows for better encapsulation etc.
>> Anyhow, my main point: Unless someone says 'don't do it' I'll put a
>> patch up for unittest in the patch tracker to add this.
> Still no answer to the question: What is the purpose of tearDown once
> this is added?
> When should I put code into tearDown (if at all) once this is available?
With addCleanup I almost never use tearDown. I don't see a specific need
for it, other than for people used to a specific xUnit coding style.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the testing-in-python