summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
Commit message (Collapse)AuthorAgeFilesLines
* compare singletons by identity not equality (closes #16712)Benjamin Peterson2012-10-091-1/+1
| | | | Patch from Serhiy Storchaka.
* Closes issue 15323. Improve failure message of Mock.assert_called_once_withMichael Foord2012-09-282-2/+9
|
* MergeMichael Foord2012-09-282-1/+14
|\
| * Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ ↵Michael Foord2012-09-282-1/+14
| | | | | | | | super call
* | Closes issue 16064. No longer hard code executable name in unittest help output.Michael Foord2012-09-281-1/+8
| |
* | Adding patch.stopall method to unittest.mockMichael Foord2012-06-102-2/+38
| |
* | Fix exception when calling reset_mock on a mock created with autospecMichael Foord2012-06-093-0/+18
| |
* | Close #14857: fix regression in references to PEP 3135 implicit __class__ ↵Nick Coghlan2012-05-271-3/+6
| | | | | | | | closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue
* | Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵Antoine Pitrou2012-04-252-1/+16
|\ \ | |/ | | | | 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-252-1/+16
| | | | | | | | class that doesn't inherit from TestCase (i.e. a mixin).
* | Remove incorrect commentMichael Foord2012-04-211-1/+0
| |
* | Closes issue 14634. unittest.mock.create_autospec now supports keyword only ↵Michael Foord2012-04-212-4/+22
| | | | | | | | arguments.
* | Closes issue 14636. mock objects raise exceptions from an iterable side_effectMichael Foord2012-04-212-3/+17
| |
* | Minor docstring / docs corrections for unittest.mockMichael Foord2012-04-131-6/+6
| |
* | Make unittest.mock.create_autospec resilient against AttributeError on ↵Michael Foord2012-04-132-2/+29
| | | | | | | | original object
* | unittest.mock.PropertyMock return value and attributes are now standard ↵Michael Foord2012-04-132-0/+14
| | | | | | | | MagicMocks
* | Fix unittest.mock.patch docstringMichael Foord2012-03-281-2/+0
| |
* | Minor unittest.mock.patch doc / docstring improvementMichael Foord2012-03-281-11/+16
| |
* | unittest.mock: removed another bit of Python 2 only codeMichael Foord2012-03-251-6/+0
| |
* | Adding unittest.mock documentationMichael Foord2012-03-251-5/+3
| |
* | unittest.mock: a mock created by patch with a spec as the list argument will ↵Michael Foord2012-03-252-1/+28
| | | | | | | | be callable if __call__ is in the spec
* | unittest.mock: remove another piece of Python 2 specific codeMichael Foord2012-03-251-2/+0
| |
* | Remove more Python 2 code from unittest.mock (obsolete function attributes)Michael Foord2012-03-251-14/+0
| |
* | Minor changes to the unittest.mock.mock_open helperMichael Foord2012-03-251-5/+4
| |
* | Addition of docstrings to unittest.mock helpersMichael Foord2012-03-251-2/+20
| |
* | unittest.mock: set file_spec on first useMichael Foord2012-03-251-2/+6
| |
* | Support subclassing unittest.mock._patch and fix various obscure bugs around ↵Michael Foord2012-03-252-32/+151
| | | | | | | | patcher spec arguments
* | unittest.mock.MagicMock objects are now unorderable by defaultMichael Foord2012-03-252-9/+26
| |
* | Removed XXX from unittest.mock docstring and switch to a nicer ↵Michael Foord2012-03-141-24/+19
| | | | | | | | try...except...finally
* | Remove more Python 2 compatibility cruft from unittest.mockMichael Foord2012-03-142-25/+6
| |
* | Remove Python 2 compatibility cruft from unittest.mockMichael Foord2012-03-141-5/+3
| |
* | And another one... mock import fix.Michael Foord2012-03-141-2/+2
| |
* | Fix another mock importMichael Foord2012-03-141-1/+1
| |
* | Fix import failure in mock testMichael Foord2012-03-141-1/+1
| |
* | PEP 417: Adding unittest.mockMichael Foord2012-03-1411-0/+6682
| |
* | MergeMichael Foord2012-03-131-4/+9
|\ \ | |/
| * Fix unittest test discovery for JythonMichael Foord2012-03-131-4/+9
| |
* | Move adding unittest test discovery command line options into their own method.Michael Foord2012-03-121-5/+7
| |
* | Refactor unittest command line handling to always use optparseMichael Foord2012-03-122-59/+32
| |
* | merge from 3.2 testFnNames is assigned twice.Senthil Kumaran2011-11-241-2/+1
|\ \ | |/
| * testFnNames is assigned twice.Senthil Kumaran2011-11-241-2/+1
| |
* | Drop unused import in unittest package.Florent Xicluna2011-11-044-5/+1
| |
* | Merge 3.2Florent Xicluna2011-10-282-3/+3
|\ \ | |/
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-282-3/+3
| |
* | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-281-2/+2
| |
* | test that TestCase doesn't get cyclesBenjamin Peterson2011-07-141-0/+9
| |
* | 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-062-33/+120
| | | | | | | | 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-272-0/+44
|\ \ | |/