Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rename TestCase.skip() to skipTest() because it causes annoying problems ↵ | Benjamin Peterson | 2009-03-26 | 1 | -1/+1 |
| | | | | with trial #5571 | ||||
* | remove uneeded function | Benjamin Peterson | 2009-03-26 | 1 | -11/+4 |
| | |||||
* | add shorthands for expected failures and unexpected success | Benjamin Peterson | 2009-03-25 | 1 | -2/+2 |
| | |||||
* | another style nit | Benjamin Peterson | 2009-03-24 | 1 | -1/+2 |
| | |||||
* | fix newline issue in test summary | Benjamin Peterson | 2009-03-24 | 1 | -1/+3 |
| | |||||
* | fix typo | Benjamin Peterson | 2009-03-24 | 1 | -1/+1 |
| | |||||
* | add new skipping things to __all__ | Benjamin Peterson | 2009-03-24 | 1 | -2/+4 |
| | |||||
* | update docstring | Benjamin Peterson | 2009-03-24 | 1 | -1/+2 |
| | |||||
* | remove special metadata | Benjamin Peterson | 2009-03-24 | 1 | -4/+0 |
| | |||||
* | some cleanup and modernization | Benjamin Peterson | 2009-03-24 | 1 | -41/+50 |
| | |||||
* | update from CVS | Benjamin Peterson | 2009-03-23 | 1 | -1/+1 |
| | |||||
* | comply with the evilJavaNamingScheme for attribute names | Benjamin Peterson | 2009-03-23 | 1 | -7/+7 |
| | | | | It seems my love of PEP 8 overrode the need for consistentcy | ||||
* | implement test skipping and expected failures | Benjamin Peterson | 2009-03-23 | 1 | -15/+189 |
| | | | | patch by myself #1034053 | ||||
* | Issue #2153: modernize coding style of unittest.py, remove obsolete ↵ | Antoine Pitrou | 2008-12-28 | 1 | -46/+25 |
| | | | | | | compatibility stuff. Patch by Virgil Dupras. | ||||
* | Issue #4444: Allow assertRaises() to be used as a context handler. | Antoine Pitrou | 2008-12-28 | 1 | -8/+30 |
| | |||||
* | Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵ | Nick Coghlan | 2008-08-11 | 1 | -0/+3 |
| | | | | inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. | ||||
* | #3390: replace a remaining has_key(). | Georg Brandl | 2008-07-18 | 1 | -1/+1 |
| | |||||
* | Suppress -3 warnings in unittest.py | Raymond Hettinger | 2008-07-10 | 1 | -5/+12 |
| | |||||
* | #2787: Flush stdout after writing test name, helpful when running | Georg Brandl | 2008-05-11 | 1 | -0/+4 |
| | | | | hanging or long-running tests. Patch by Adam Olsen. | ||||
* | Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just | Jeffrey Yasskin | 2008-01-03 | 1 | -2/+2 |
| | | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689. | ||||
* | Hashing simplification pointed out by Thomas Wouters. | Collin Winter | 2007-03-09 | 1 | -4/+3 |
| | |||||
* | Add some sanity checks to unittest.TestSuite's addTest(s) methods. | Georg Brandl | 2007-03-07 | 1 | -0/+9 |
| | | | | Fixes #878275. | ||||
* | Patch #787789: allow to pass custom TestRunner instances to unittest's | Georg Brandl | 2007-03-07 | 1 | -4/+12 |
| | | | | main() function. | ||||
* | Patches #1550273, #1550272: fix a few bugs in unittest and add a | Georg Brandl | 2007-03-07 | 1 | -19/+54 |
| | | | | comprehensive test suite for the module. | ||||
* | Patch #1388073: Make unittest.TestCase easier to subclass | Georg Brandl | 2006-01-20 | 1 | -13/+13 |
| | |||||
* | Reduce the usage of the types module. | Raymond Hettinger | 2005-02-07 | 1 | -1/+1 |
| | |||||
* | SF bug #1078905: Docs for unittest run() methods are misleading | Raymond Hettinger | 2004-12-04 | 1 | -4/+5 |
| | |||||
* | Patch #1061904 / bug #878275: give a nicer error message when someone | Johannes Gijsbers | 2004-11-07 | 1 | -0/+2 |
| | | | | accidentally derives from TestSuite instead of TestCase. | ||||
* | Added an __iter__ method for test suites. | Jim Fulton | 2004-08-28 | 1 | -0/+3 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -4/+4 |
| | | | | From SF patch #852334. | ||||
* | Variation of Thomas Heller's patch (722638) for improving readability | Steve Purcell | 2003-12-06 | 1 | -10/+26 |
| | | | | | | of test failure output. Irrelevant traceback levels are pruned from formatted traceback strings. | ||||
* | Another instance of the same typo. | Steve Purcell | 2003-10-26 | 1 | -2/+2 |
| | |||||
* | Incorporated patch 819077, from George Yoshida: | Steve Purcell | 2003-10-26 | 1 | -7/+6 |
| | | | | | | | | | | | | | * Fixed typo in docstring for 'failUnlessAlmostEqual()' * Removed unnecessary use of 'float()' for time values. * Removed apparently unnecessary import of unittest. At some point in the distant past I believe it was necessary otherwise the 'TestCase' that a module saw was not the same as the 'TestCase' seen within 'unittest', and the user's TestCase subclasses were not recognised as subclasses of the TestCase seen within unittest. Seems not to be necessary now. | ||||
* | Fixed bug introduced in revision 1.27 | Armin Rigo | 2003-10-24 | 1 | -1/+1 |
| | |||||
* | Removed redundant 'return' statement. (Issue 813159) | Steve Purcell | 2003-09-30 | 1 | -2/+1 |
| | |||||
* | Topical change: use 'startswith()' to identify test methods with a | Steve Purcell | 2003-09-23 | 1 | -2/+2 |
| | | | | given prefix rather than comparing a slice. | ||||
* | - Fixed loading of tests by name when name refers to unbound | Steve Purcell | 2003-09-22 | 1 | -40/+58 |
| | | | | | | | | | | | | method (PyUnit issue 563882, thanks to Alexandre Fayolle) - Ignore non-callable attributes of classes when searching for test method names (PyUnit issue 769338, thanks to Seth Falcon) - New assertTrue and assertFalse aliases for comfort of JUnit users - Automatically discover 'runTest()' test methods (PyUnit issue 469444, thanks to Roeland Rengelink) - Dropped Python 1.5.2 compatibility, merged appropriate shortcuts from Python CVS; should work with Python >= 2.1. - Removed all references to string module by using string methods instead | ||||
* | Explicitly define public symbols via __all__: see discussion with Raymond | Steve Purcell | 2003-09-15 | 1 | -0/+10 |
| | | | | | Hettinger in comments for issue 804115 https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470 | ||||
* | SF bug #804115: bad argument handling(unittest.py) | Raymond Hettinger | 2003-09-13 | 1 | -2/+2 |
| | |||||
* | delete unused local variable (pychecker caught) | Skip Montanaro | 2003-07-13 | 1 | -1/+1 |
| | |||||
* | SF bug #715145: unittest.py still uses != in failUnlessEqual | Raymond Hettinger | 2003-04-04 | 1 | -2/+2 |
| | |||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -3/+3 |
| | |||||
* | Incorporate Skip's suggestion to use SciPy's validation test near | Raymond Hettinger | 2002-12-29 | 1 | -0/+28 |
| | | | | | | equality. Note, there is another flavor that compares to a given number of significant digits rather than decimal places. If there is a demand, that could be added at a later date. | ||||
* | Now that TestCase is a new-style class, change loadTestsFromModule and | Guido van Rossum | 2002-09-30 | 1 | -2/+4 |
| | | | | loadTestsFromName to accept new-style classes too! | ||||
* | Add a missing call to _strclass(). | Jeremy Hylton | 2002-08-13 | 1 | -1/+1 |
| | |||||
* | Fix to ensure consistent 'repr' and 'str' results between Python | Steve Purcell | 2002-08-09 | 1 | -7/+10 |
| | | | | | versions, since 'repr(new_style_class) != repr(classic_class)'. Suggested by Jeremy Hylton. | ||||
* | Add module-wide "__metaclass__ = type", as requested by Jim Fulton. | Steve Purcell | 2002-08-08 | 1 | -1/+4 |
| | | | | (Synched from pyunit CVS) | ||||
* | Fix printing plural (s or ""). | Neal Norwitz | 2002-05-31 | 1 | -1/+1 |
| | |||||
* | Munge the RCS keywords to avoid updates, so the version number matches that | Fred Drake | 2002-05-21 | 1 | -1/+1 |
| | | | | | | of the PyUNIT version of the same file. This helps people understand that this version is the same as the version from the independent PyUNIT release (confusion was indicated on the PyUNIT mailing list). | ||||
* | Synch with pyunit CVS: | Steve Purcell | 2001-12-17 | 1 | -4/+4 |
| | | | | | | - Adds Fred's patch 487662: "Better error message for assertEqual" - Removed small portion of code unused after Guido's patch 490119: "Don't treat ^C as error" |