[New-bugs-announce] [issue2721] unittest.makeSuite undocumented and "obsolete" - but what to use instead?
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.
nosy: georg.brandl, slinkp
title: unittest.makeSuite undocumented and "obsolete" - but what to use instead?
versions: Python 2.4, Python 2.5
Tracker <report at bugs.python.org>
More information about the New-bugs-announce