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

Georg Brandl report at bugs.python.org
Sun May 11 13:02:16 CEST 2008

Georg Brandl <georg at python.org> added the comment:

The replacement is TestLoader().loadTestsFromTestCase(), and it's
already in a prominent place in the docs:

Instead of :func:`unittest.main`, there are other ways to run the tests
with a
finer level of control, less terse output, and no requirement to be run
from the
command line.  For example, the last two lines may be replaced with::

   suite =

Closing as "works for me".

resolution:  -> works for me
status: open -> closed

Tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list