summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
Commit message (Collapse)AuthorAgeFilesLines
* #8906: merge with 3.3.Ezio Melotti2013-03-291-12/+11
|\
| * #8906: document failureException, longMessage, and maxDiff in the class ↵Ezio Melotti2013-03-291-12/+11
| | | | | | | | docstring. Patch by Boris Feld.
* | #17329: merge with 3.3.Ezio Melotti2013-03-271-1/+1
|\ \ | |/
| * #17329: merge with 3.2.Ezio Melotti2013-03-271-1/+1
| |\
| | * #17329: document unittest.SkipTest. Initial patch by Zachary Ware.Ezio Melotti2013-03-271-1/+1
| | |
* | | Issue #16997: unittest.TestCase now provides a subTest() context manager to ↵Antoine Pitrou2013-03-201-86/+166
|/ / | | | | | | procedurally generate, in an easy way, small test instances.
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-2/+2
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-2/+2
| | | | | | | | Patch by Serhiy Storchaka.
* | #16433: merge with 3.2.Ezio Melotti2012-11-081-1/+1
|\ \ | |/
| * #16433: fix docstring of assertNotEqual.Ezio Melotti2012-11-081-1/+1
| |
* | compare singletons by identity not equality (closes #16712)Benjamin Peterson2012-10-091-1/+1
| | | | | | | | Patch from Serhiy Storchaka.
* | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵Antoine Pitrou2012-04-251-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 Pitrou2012-04-251-1/+1
| | | | | | | | class that doesn't inherit from TestCase (i.e. a mixin).
* | Drop unused import in unittest package.Florent Xicluna2011-11-041-2/+1
| |
* | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-281-2/+2
| |
* | merge 3.2 (#12544)Benjamin Peterson2011-07-131-22/+3
|\ \ | |/
| * this can be done without a custom dict (also fixes #12544)Benjamin Peterson2011-07-131-22/+3
| |
* | Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and ↵Ezio Melotti2011-05-061-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 Melotti2011-04-271-0/+8
|\ \ | |/
| * #11763: merge with 3.1.Ezio Melotti2011-04-271-0/+8
| |
* | #11282: add back the fail* methods and assertDictContainsSubset.Ezio Melotti2011-04-031-5/+36
| |
* | #11282: merge with 3.2.Ezio Melotti2011-04-031-2/+1
|\ \ | |/
| * #11282: the fail* methods will stay around a few more versions.Ezio Melotti2011-04-031-2/+1
| |
* | Closes issue 11407. TestCase.run returns the result object used or createdMichael Foord2011-03-141-1/+1
| |
* | Remove unittest methods scheduled for removal in 3.3 -- makes the unittest ↵Georg Brandl2011-02-201-78/+5
|/ | | | test suite pass again.
* Issue 10573: revert unittest docs to first / secondMichael Foord2011-01-281-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 Foord2011-01-031-3/+8
| | | | Changed unittestgui to show number of discovered tests in the status bar.
* Adopt symmetric names for arguments (actual/expected --> first/second).Raymond Hettinger2010-12-241-10/+10
|
* Put diff output in useful order (when the elements were first seen).Raymond Hettinger2010-12-241-6/+3
|
* Improve diff for assertCountEqual() to actually show the differing counts.Raymond Hettinger2010-12-241-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 Hettinger2010-12-241-3/+3
|
* Fix docs and comment for r87454.Raymond Hettinger2010-12-241-1/+1
|
* Fix buglet. If the input was an iterator, the fallback would occur afterRaymond Hettinger2010-12-231-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 Hettinger2010-12-211-0/+2
|
* Issue 10611. Issue 9857. Improve the way exception handling, including test ↵Michael Foord2010-12-191-50/+78
| | | | skipping, is done inside TestCase.run
* #10573: use actual/expected consistently in unittest methods. The order of ↵Ezio Melotti2010-12-181-13/+13
| | | | the args of assertCountEqual is also changed.
* Use lowercase true/false in assertTrue/assertFalse messages.Ezio Melotti2010-12-181-4/+4
|
* assert that the regex given to assertRegex is non-empty.Gregory P. Smith2010-12-161-0/+1
|
* #10273: Remove a "Matches" that I missed in r86910. Thanks to RDM for ↵Ezio Melotti2010-12-101-1/+1
| | | | noticing it.
* Issue 7911: unittest.TestCase.longMessage defaults to True for improved ↵Michael Foord2010-12-031-1/+1
| | | | failure messages by default
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-50/+54
| | | | assertRaisesRegex.
* Do not add an obsolete unittest name to Py3.2.Raymond Hettinger2010-11-291-3/+0
|
* Issue 10242: unittest.assertItemsEqual makes too many assumptions.Raymond Hettinger2010-11-271-11/+16
|
* #9424: add a DeprecationWarning for assertEquals, assertNotEquals, ↵Ezio Melotti2010-11-221-18/+8
| | | | assertAlmostEquals, assertNotAlmostEquals, and assert_
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-6/+4
|
* Issue 10326: TestCase instances can now be pickled (they store names of ↵Michael Foord2010-11-201-7/+28
| | | | instance methods instead of references to the instance methods themselves).
* Remove the keyword only restriction for places and delta args in ↵Michael Foord2010-11-021-2/+2
| | | | unittest.TestCase.assert[Not]AlmostEqual
* Issue #9754: Similarly to assertRaises and assertRaisesRegexp, unittestAntoine Pitrou2010-09-061-4/+110
| | | | | test cases now also have assertWarns and assertWarnsRegexp methods to check that a given warning type was triggered by the code under test.
* Fix error message for comparing single line strings in ↵Michael Foord2010-07-101-3/+8
| | | | | | unittest.TestCase.assertEqual. Issue 9174.
* Merged revisions 81859 via svnmerge fromMichael Foord2010-06-101-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81859 | michael.foord | 2010-06-09 13:29:56 +0100 (Wed, 09 Jun 2010) | 1 line Typo correction. ........