summaryrefslogtreecommitdiff
path: root/Lib/unittest.py
Commit message (Collapse)AuthorAgeFilesLines
* Restore default testRunner argument in unittest.main to None. Issue 6177Michael Foord2009-06-021-1/+3
|
* Add test discovery to unittest. Issue 6001.Michael Foord2009-05-291-7/+178
|
* Make assertSequenceEqual error messages less cryptic, particularly for ↵Michael Foord2009-05-251-25/+32
| | | | nested sequences.
* make class skipping decorators the same as skipping every test of the classBenjamin Peterson2009-05-251-35/+9
| | | | This removes ClassTestSuite and a good bit of hacks.
* Rename TestCase._result to _resultForDoCleanups to avoid potential clashes ↵Michael Foord2009-05-211-3/+3
| | | | in TestCase subclasses. Issue 6072.
* Better fix for modules using unittest.main(). Fixes regression caused by ↵Michael Foord2009-05-121-1/+1
| | | | commit for issue 5995. Michael Foord
* Fix to restore command line behaviour for test modules using ↵Michael Foord2009-05-121-1/+2
| | | | unittest.main(). Regression caused by issue 5995. Michael
* Adds a verbosity keyword argument to unittest.main plus a minor fix allowing ↵Michael Foord2009-05-111-2/+5
| | | | | | | | | | you to specify test modules / classes from the command line. Closes issue 5995. Michael Foord
* (no commit message)Michael Foord2009-05-021-1/+30
|
* Add addCleanup and doCleanups to unittest.TestCase.Michael Foord2009-05-021-22/+52
| | | | | | Closes issue 5679. Michael Foord
* Adds an exit parameter to unittest.main(). If False main no longerMichael Foord2009-05-021-8/+7
| | | | | | | | calls sys.exit. Closes issue 3379. Michael Foord
* fix a few nits in unittest.py #5771Benjamin Peterson2009-04-181-2/+2
|
* Adding assertIs and assertIsNot methods to unittest.TestCaseMichael Foord2009-04-051-0/+12
| | | | Issue #2578
* Change the way unittest.TestSuite use their tests to always access them ↵Michael Foord2009-04-051-4/+4
| | | | | | through iteration. Non behavior changing, this allows you to create custom subclasses that override __iter__. Issue #5693
* Store the functions in the _type_equality_funcs as wrapped objects that are ↵Michael Foord2009-04-021-4/+15
| | | | | | | | deep copyable. This allows for the deep copying of TestCase instances. Issue 5660
* Better exception messages for unittest assert methods.Michael Foord2009-04-021-69/+99
| | | | | | | | | | | | - unittest.assertNotEqual() now uses the inequality operator (!=) instead of the equality operator. - Default assertTrue and assertFalse messages are now useful. - TestCase has a longMessage attribute. This defaults to False, but if set to True useful error messages are shown in addition to explicit messages passed to assert methods. Issue #5663
* remove double underscoresBenjamin Peterson2009-04-011-31/+32
|
* Issue an actual PendingDeprecationWarning for the TestCase.fail* methods.Gregory P. Smith2009-03-311-9/+17
| | | | Document the deprecation.
* Rename the actual method definitions to the official assertFoo names.Gregory P. Smith2009-03-311-21/+26
| | | | | | | | | | Adds unittests to make sure the old fail* names continue to work now and adds a comment that they are pending deprecation. Also adds a test to confirm that the plural Equals method variants continue to exist even though we're unlikely to deprecate those. http://bugs.python.org/issue2578
* The unittest.TestCase.assertEqual() now displays the differences in lists,Gregory P. Smith2009-03-311-21/+446
| | | | | | | | | | tuples, dicts and sets on failure. Many new handy type and comparison specific assert* methods have been added that fail with error messages actually useful for debugging. Contributed in by Google and completed with help from mfoord and GvR at PyCon 2009 sprints. Discussion lives in http://bugs.python.org/issue2578.
* rename TestCase.skip() to skipTest() because it causes annoying problems ↵Benjamin Peterson2009-03-261-1/+1
| | | | with trial #5571
* remove uneeded functionBenjamin Peterson2009-03-261-11/+4
|
* add shorthands for expected failures and unexpected successBenjamin Peterson2009-03-251-2/+2
|
* another style nitBenjamin Peterson2009-03-241-1/+2
|
* fix newline issue in test summaryBenjamin Peterson2009-03-241-1/+3
|
* fix typoBenjamin Peterson2009-03-241-1/+1
|
* add new skipping things to __all__Benjamin Peterson2009-03-241-2/+4
|
* update docstringBenjamin Peterson2009-03-241-1/+2
|
* remove special metadataBenjamin Peterson2009-03-241-4/+0
|
* some cleanup and modernizationBenjamin Peterson2009-03-241-41/+50
|
* update from CVSBenjamin Peterson2009-03-231-1/+1
|
* comply with the evilJavaNamingScheme for attribute namesBenjamin Peterson2009-03-231-7/+7
| | | | It seems my love of PEP 8 overrode the need for consistentcy
* implement test skipping and expected failuresBenjamin Peterson2009-03-231-15/+189
| | | | patch by myself #1034053
* Issue #2153: modernize coding style of unittest.py, remove obsolete ↵Antoine Pitrou2008-12-281-46/+25
| | | | | | compatibility stuff. Patch by Virgil Dupras.
* Issue #4444: Allow assertRaises() to be used as a context handler.Antoine Pitrou2008-12-281-8/+30
|
* Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵Nick Coghlan2008-08-111-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 Brandl2008-07-181-1/+1
|
* Suppress -3 warnings in unittest.pyRaymond Hettinger2008-07-101-5/+12
|
* #2787: Flush stdout after writing test name, helpful when runningGeorg Brandl2008-05-111-0/+4
| | | | hanging or long-running tests. Patch by Adam Olsen.
* Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin2008-01-031-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 Winter2007-03-091-4/+3
|
* Add some sanity checks to unittest.TestSuite's addTest(s) methods.Georg Brandl2007-03-071-0/+9
| | | | Fixes #878275.
* Patch #787789: allow to pass custom TestRunner instances to unittest'sGeorg Brandl2007-03-071-4/+12
| | | | main() function.
* Patches #1550273, #1550272: fix a few bugs in unittest and add aGeorg Brandl2007-03-071-19/+54
| | | | comprehensive test suite for the module.
* Patch #1388073: Make unittest.TestCase easier to subclassGeorg Brandl2006-01-201-13/+13
|
* Reduce the usage of the types module.Raymond Hettinger2005-02-071-1/+1
|
* SF bug #1078905: Docs for unittest run() methods are misleadingRaymond Hettinger2004-12-041-4/+5
|
* Patch #1061904 / bug #878275: give a nicer error message when someoneJohannes Gijsbers2004-11-071-0/+2
| | | | accidentally derives from TestSuite instead of TestCase.
* Added an __iter__ method for test suites.Jim Fulton2004-08-281-0/+3
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-4/+4
| | | | From SF patch #852334.