From: Ezio Melotti <ezio.melotti@gmail.com> Date: Thu, 10 Mar 2011 11:46:50 +0000 (+0200) Subject: Port a couple of changes from 3.1. X-Git-Tag: v3.2.1b1~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40dcb1d2870bfb605cd262b857f9df5af1291d06;p=python Port a couple of changes from 3.1. --- 40dcb1d2870bfb605cd262b857f9df5af1291d06 diff --cc Doc/library/unittest.rst index 8366bab394,f41bab3915..a3de29b599 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@@ -1913,17 -1504,8 +1913,17 @@@ Loading and running test It is not intended to be called directly, but can be overridden in subclasses to provide a custom ``TestResult``. + ``_makeResult()`` instantiates the class or callable passed in the + ``TextTestRunner`` constructor as the ``resultclass`` argument. It + defaults to :class:`TextTestResult` if no ``resultclass`` is provided. + The result class is instantiated with the following arguments:: -.. function:: main(module='__main__', defaultTest=None, argv=None, testRunner=TextTestRunner, testLoader=unittest.defaultTestLoader, exit=True) + stream, descriptions, verbosity + + +.. function:: main(module='__main__', defaultTest=None, argv=None, testRunner=None, \ - testLoader=unittest.loader.defaultTestLoader, exit=True, verbosity=1, \ ++ testLoader=unittest.defaultTestLoader, exit=True, verbosity=1, \ + failfast=None, catchbreak=None, buffer=None, warnings=None) A command-line program that runs a set of tests; this is primarily for making test modules conveniently executable. The simplest use for this function is to