[Python-Dev] setUpClass and setUpModule in unittest (original) (raw)
Olemis Lang olemis at gmail.com
Tue Feb 9 20:00:04 CET 2010
- Previous message: [Python-Dev] setUpClass and setUpModule in unittest
- Next message: [Python-Dev] setUpClass and setUpModule in unittest
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sorry. I had not finished the previous message
On Tue, Feb 9, 2010 at 1:55 PM, Olemis Lang <olemis at gmail.com> wrote:
On Tue, Feb 9, 2010 at 1:29 PM, Olemis Lang <olemis at gmail.com> wrote:
On Tue, Feb 9, 2010 at 11:42 AM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
Hello all,
Several authors of other Python testing frameworks spoke up against them, but several users of test frameworks spoke up in favour of them. ;-)
+1 for having something like that included in unittest I'm pretty sure I can introduce setUpClass and setUpModule without breaking compatibility with existing unittest extensions or backwards compatibility issues Is it possible to use the names
BeforeClass
andAfterClass
(just to be make it look similar to JUnit naming conventions ;o) ? Another Q: - class setup method will be aclassmethod
isn't it ? It should not be a regular instance method because IMO it is not bound to a particularTestCase
instance.
- Is it possible to rely on the fact that all class-level tear down methods will be guaranteed to run even if class-level setup method throws an exception ?
-- Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/
Featured article:
PEP 391 - Please Vote! -
http://feedproxy.google.com/r/TracGViz-full/3/hY2h6ZSAFRE/110617
- Previous message: [Python-Dev] setUpClass and setUpModule in unittest
- Next message: [Python-Dev] setUpClass and setUpModule in unittest
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]