-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Olemis Lang wrote: > On Thu, Feb 11, 2010 at 1:11 PM, Guido van Rossum <gu...@python.org> wrote:
>> Regarding the objection that setUp/tearDown for classes would run into >> issues with subclassing, I propose to let the standard semantics of >> subclasses do their job. Thus a subclass that overrides setUpClass or >> tearDownClass is responsible for calling the base class's setUpClass >> and tearDownClass (and the TestCase base class should provide empty >> versions of both). The testrunner should only call setUpClass and >> tearDownClass for classes that have at least one test that is >> selected. >> > > +1 > > Considering zope.testing layers proposal, it seems that subclassing of > layers works different, isn't it ? Hmm, I wasn't making a proposal that the unittest module adopt zope.testing's layers model: I was just trying to point out that another model did exist and was being used successfully. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkt0WcUACgkQ+gerLs4ltQ6CgACfb9kQ6vpu6BwOJLBOLDnHnTil dZMAnjdkdT/5RQXGIWFXGuUgnV8rQSuI =ExUu -----END PGP SIGNATURE----- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com