[New-bugs-announce] [issue2721] unittest.makeSuite undocumented and "obsolete" - but what to use instead?

Paul Winkler report at bugs.python.org
Wed Apr 30 00:26:31 CEST 2008


New submission from Paul Winkler <pw_lists at slinkp.com>:

A comment in unittest.py says "these functions should be considered
obsolete". But I've seen a lot of code in the wild still using
unittest.makeSuite(MyTestCase)... in fact it's used frequently in the
python standard library tests.

And I don't see a replacement for this use case: given a subclass of
TestCase, conveniently turn all its test* methods into a suite. How are
we supposed to do that now?

Either makeSuite should be documented, or a suitable replacement should
be provided and documented.

----------
assignee: georg.brandl
components: Documentation
messages: 65986
nosy: georg.brandl, slinkp
severity: normal
status: open
title: unittest.makeSuite undocumented and "obsolete" - but what to use instead?
versions: Python 2.4, Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2721>
__________________________________


More information about the New-bugs-announce mailing list