summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
Commit message (Collapse)AuthorAgeFilesLines
* A few formatting nits:Jeremy Hylton2001-10-221-5/+5
| | | | | Don't put paren in column 0 (to please font-lock mode). Put space after comma in argument list.
* Add missing period in docstring.Fred Drake2001-09-061-1/+1
| | | | (Steve, can you add this to the PyUnit repository as well?)
* Changed TestResult to store only the text representation of an error.Steve Purcell2001-09-061-10/+15
| | | | | | | | | | | | | | | | | | | | This patch is similar to that proposed by Jeremy. The proposed patch altered the interface of TestResult such that it would be passed the error information as a string rather than an exc_info() tuple. The implemented change leaves the interface untouched so that TestResults are still passed the tracebacks, but stor them in stringified form for later reporting. Notes: - Custom subclasses of TestResult written by users should be unaffected. - The existing 'unittestgui.py' will still work with this module after the change. - Support can later be added to pop into the debugger when an error occurs; this support should be added to a TestRunner rather than to TestCase itself, which this change will enable. (Jeremy, Fred, Guido: Thanks for all the feedback)
* Merged in bugfix from PyUnit CVS for problem reported by Gary Todd.Steve Purcell2001-08-081-3/+4
| | | | | | | | | If 'unittest.py' was run from the command line with the name of a test case class as a parameter, it failed with an ugly error. (Which was a shame, because the documentation says you can do that.) The problem was the old 'is the class X that you imported from me the same as my class X?' gotcha.
* patch 418489 from Andrew Dalke for string format bugSteve Purcell2001-05-101-1/+1
|
* - Typo in message for TestCase.failIfEqual()Steve Purcell2001-04-151-2/+1
| | | | - Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
* Whitespace normalization.Tim Peters2001-04-131-1/+1
|
* - New fail*() methods, and comprehensive set of assert*() synonymsSteve Purcell2001-04-121-28/+63
| | | | | | - TestCase.failureException defines the exception that indicates a test failure - Docstrings for TestLoader class - Added exc_info() hack back in
* * Remove exc_info() kludge -- it actually messed up the Jython outputSteve Purcell2001-04-091-17/+13
| | | | | * Fixed TestLoader.loadTestsFromName() for nested packages * Corrected the command-line usage summary
* Whitespace normalization.Tim Peters2001-03-291-7/+7
|
* Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.pySteve Purcell2001-03-221-246/+238
| | | | changed accordingly.
* The unittest module from PyUNIT, by Steve Purcell.Fred Drake2001-03-211-0/+689