This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients loewis, michael.foord
Date 2010-09-24.18:23:29
SpamBayes Score 7.647793e-07
Marked as misclassified No
Message-id <4C9CEC9F.3090209@v.loewis.de>
In-reply-to <1285256805.92.0.256732788553.issue9926@psf.upfronthosting.co.za>
Content
> Perhaps slightly ironically (for this particular bug report) is that
> the change was introduced to support class and module level setUp and
> tearDown (similar to the use-case it now blocks).

FWIW, this issue arrived from pygresql, see TestSuite2 in
http://tinyurl.com/2ap9t6d

Here, the objective is to wrap a number of test suite classes
with a single setup/teardown, covering all test cases that occur
in either test suite, so that the expensive database creation
happens only once. I can't see how either class or module level
setup could easily replace this.

> A backwards compatible change would be to rename BaseTestSuite *back*
> to TestSuite and give the current TestSuite a new name.

That sounds good to me.

> The disadvantage of this approach is that it is not uncommon for test
> frameworks to create suites themselves - and doing this could 'break'
> tests using class / module fixtures.

You mean, for test suites that have been modified to explicitly
support Python 2.7?

> Any other suggestions or ideas?

I think this would then be for python-dev to discuss.
History
Date User Action Args
2010-09-24 18:23:31loewissetrecipients: + loewis, michael.foord
2010-09-24 18:23:29loewislinkissue9926 messages
2010-09-24 18:23:29loewiscreate