Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #21112: Fix regression in unittest.expectedFailure on subclasses. | Robert Collins | 2015-08-27 | 1 | -2/+5 |
|\ | | | | | | | Patch from Berker Peksag. | ||||
| * | Issue #21112: Fix regression in unittest.expectedFailure on subclasses. | Robert Collins | 2015-08-27 | 1 | -2/+5 |
| | | | | | | | | Patch from Berker Peksag. | ||||
| * | Reverted issue #24134 changes (except new tests). | Serhiy Storchaka | 2015-05-16 | 1 | -13/+11 |
| | | |||||
* | | Issue #20362: Honour TestCase.longMessage correctly in assertRegex. | Robert Collins | 2015-08-19 | 1 | -7/+11 |
| | | | | | | | | Patch from Ilia Kurenkov. | ||||
* | | Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-21 | 1 | -0/+13 |
| | | | | | | | | | | assertWarnsRegex() assertments now check the type of the first argument to prevent possible user error. Based on patch by Daniel Wagner-Hall. | ||||
* | | Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-16 | 1 | -44/+44 |
|/ | | | | | assertWarnsRegex() checks now emits a deprecation warning when callable is None or keyword arguments except msg is passed in the context manager mode. | ||||
* | Fixed English in error message. | Serhiy Storchaka | 2015-05-06 | 1 | -1/+1 |
| | |||||
* | Issue #24134: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-06 | 1 | -11/+13 |
| | | | | | | assertWarnsRegex() checks are not longer successful if the callable is None. Added tests for assertRaises(). | ||||
* | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 1 | -3/+0 |
| | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
* | Issue #9815: assertRaises now tries to clear references to local variables ↵ | Antoine Pitrou | 2014-04-28 | 1 | -0/+3 |
| | | | | in the exception's traceback. | ||||
* | backport: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex. | R David Murray | 2014-03-25 | 1 | -1/+1 |
| | | | | | | | Previously a non-string, non-regex second argument and missing callable argument could cause the test to appear to always pass. Initial patch by Kamilla Holanda. | ||||
* | Close #19880: Fix a reference leak in unittest.TestCase. Explicitly break | Victor Stinner | 2013-12-09 | 1 | -1/+13 |
| | | | | reference cycles between frames and the _Outcome instance. | ||||
* | Issue #18996: TestCase.assertEqual() now more cleverly shorten differing | Serhiy Storchaka | 2013-09-23 | 1 | -13/+7 |
| | | | | strings in error report. | ||||
* | Issue #18937: Add an assertLogs() context manager to unittest.TestCase to ↵ | Antoine Pitrou | 2013-09-14 | 1 | -6/+103 |
| | | | | ensure that a block of code emits a message using the logging module. | ||||
* | #8906: merge with 3.3. | Ezio Melotti | 2013-03-29 | 1 | -12/+11 |
|\ | |||||
| * | #8906: document failureException, longMessage, and maxDiff in the class ↵ | Ezio Melotti | 2013-03-29 | 1 | -12/+11 |
| | | | | | | | | docstring. Patch by Boris Feld. | ||||
* | | #17329: merge with 3.3. | Ezio Melotti | 2013-03-27 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #17329: merge with 3.2. | Ezio Melotti | 2013-03-27 | 1 | -1/+1 |
| |\ | |||||
| | * | #17329: document unittest.SkipTest. Initial patch by Zachary Ware. | Ezio Melotti | 2013-03-27 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #16997: unittest.TestCase now provides a subTest() context manager to ↵ | Antoine Pitrou | 2013-03-20 | 1 | -86/+166 |
|/ / | | | | | | | procedurally generate, in an easy way, small test instances. | ||||
* | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | #16433: merge with 3.2. | Ezio Melotti | 2012-11-08 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #16433: fix docstring of assertNotEqual. | Ezio Melotti | 2012-11-08 | 1 | -1/+1 |
| | | |||||
* | | compare singletons by identity not equality (closes #16712) | Benjamin Peterson | 2012-10-09 | 1 | -1/+1 |
| | | | | | | | | Patch from Serhiy Storchaka. | ||||
* | | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵ | Antoine Pitrou | 2012-04-25 | 1 | -1/+1 |
|\ \ | |/ | | | | | class that doesn't inherit from TestCase (i.e. a mixin). | ||||
| * | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵ | Antoine Pitrou | 2012-04-25 | 1 | -1/+1 |
| | | | | | | | | class that doesn't inherit from TestCase (i.e. a mixin). | ||||
* | | Drop unused import in unittest package. | Florent Xicluna | 2011-11-04 | 1 | -2/+1 |
| | | |||||
* | | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1). | Ezio Melotti | 2011-09-28 | 1 | -2/+2 |
| | | |||||
* | | merge 3.2 (#12544) | Benjamin Peterson | 2011-07-13 | 1 | -22/+3 |
|\ \ | |/ | |||||
| * | this can be done without a custom dict (also fixes #12544) | Benjamin Peterson | 2011-07-13 | 1 | -22/+3 |
| | | |||||
* | | Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and ↵ | Ezio Melotti | 2011-05-06 | 1 | -33/+47 |
| | | | | | | | | assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert. | ||||
* | | #11763: merge with 3.2. | Ezio Melotti | 2011-04-27 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | #11763: merge with 3.1. | Ezio Melotti | 2011-04-27 | 1 | -0/+8 |
| | | |||||
* | | #11282: add back the fail* methods and assertDictContainsSubset. | Ezio Melotti | 2011-04-03 | 1 | -5/+36 |
| | | |||||
* | | #11282: merge with 3.2. | Ezio Melotti | 2011-04-03 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | #11282: the fail* methods will stay around a few more versions. | Ezio Melotti | 2011-04-03 | 1 | -2/+1 |
| | | |||||
* | | Closes issue 11407. TestCase.run returns the result object used or created | Michael Foord | 2011-03-14 | 1 | -1/+1 |
| | | |||||
* | | Remove unittest methods scheduled for removal in 3.3 -- makes the unittest ↵ | Georg Brandl | 2011-02-20 | 1 | -78/+5 |
|/ | | | | test suite pass again. | ||||
* | Issue 10573: revert unittest docs to first / second | Michael Foord | 2011-01-28 | 1 | -6/+6 |
| | | | | | Minor internal change to unittest.TestCase.assertCountEqual Reviewed by R. David Murray | ||||
* | Enable unittest.TestCase to be instantiated without providing a method name. | Michael Foord | 2011-01-03 | 1 | -3/+8 |
| | | | | Changed unittestgui to show number of discovered tests in the status bar. | ||||
* | Adopt symmetric names for arguments (actual/expected --> first/second). | Raymond Hettinger | 2010-12-24 | 1 | -10/+10 |
| | |||||
* | Put diff output in useful order (when the elements were first seen). | Raymond Hettinger | 2010-12-24 | 1 | -6/+3 |
| | |||||
* | Improve diff for assertCountEqual() to actually show the differing counts. | Raymond Hettinger | 2010-12-24 | 1 | -15/+15 |
| | | | | | | | | | | | | | | | | | | New output looks like this: Traceback (most recent call last): File "test.py", line 5, in test_ce self.assertCountEqual('abracadabra xx', 'simsalabim xx') AssertionError: Element counts were not equal: Expected 5, got 2: 'a' Expected 2, got 1: 'b' Expected 0, got 2: 'i' Expected 0, got 2: 'm' Expected 0, got 1: 'l' Expected 0, got 2: 's' Expected 1, got 0: 'c' Expected 1, got 0: 'd' Expected 2, got 0: 'r' | ||||
* | Fix docstring. | Raymond Hettinger | 2010-12-24 | 1 | -3/+3 |
| | |||||
* | Fix docs and comment for r87454. | Raymond Hettinger | 2010-12-24 | 1 | -1/+1 |
| | |||||
* | Fix buglet. If the input was an iterator, the fallback would occur after | Raymond Hettinger | 2010-12-23 | 1 | -8/+7 |
| | | | | | part of the iterator had been consumed. Also, fix argument names which did not match the docs and were a bit misleading. | ||||
* | Deprecate assertDictContainsSubset() | Raymond Hettinger | 2010-12-21 | 1 | -0/+2 |
| | |||||
* | Issue 10611. Issue 9857. Improve the way exception handling, including test ↵ | Michael Foord | 2010-12-19 | 1 | -50/+78 |
| | | | | skipping, is done inside TestCase.run | ||||
* | #10573: use actual/expected consistently in unittest methods. The order of ↵ | Ezio Melotti | 2010-12-18 | 1 | -13/+13 |
| | | | | the args of assertCountEqual is also changed. |