Robert Collins | 4292afa | 2015-07-24 03:48:20 +1200 | [diff] [blame] | 1 | Library |
| 2 | ------- |
| 3 | |
| 4 | - Issue #21750: mock_open.read_data can now be read from each instance, as it |
| 5 | could in Python 3.3. |
| 6 | |
Robert Collins | 5c57dd2 | 2015-07-15 11:42:28 +1200 | [diff] [blame] | 7 | - Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely. |
| 8 | Patch from Nicola Palumbo and Laurent De Buyst. |
| 9 | |
Robert Collins | 19d5a00 | 2015-07-14 13:51:40 +1200 | [diff] [blame] | 10 | - Issue #23661: unittest.mock side_effects can now be exceptions again. This |
| 11 | was a regression vs Python 3.4. Patch from Ignacio Rossi |
| 12 | |
Łukasz Langa | f31b176 | 2015-04-13 23:12:42 -0700 | [diff] [blame] | 13 | - Issue #23310: Fix MagicMock's initializer to work with __methods__, just |
| 14 | like configure_mock(). Patch by Kasia Jachim. |
| 15 | |
Berker Peksag | fb2f1f5 | 2015-03-15 01:51:56 +0200 | [diff] [blame] | 16 | - Issue #23568: Add rdivmod support to MagicMock() objects. |
| 17 | Patch by Håkan Lövdahl. |
| 18 | |
Berker Peksag | e3d21b4 | 2015-03-12 20:42:48 +0200 | [diff] [blame] | 19 | - Issue #23581: Add matmul support to MagicMock. Patch by Håkan Lövdahl. |
| 20 | |
Serhiy Storchaka | 6af6ddc | 2015-01-31 12:05:05 +0200 | [diff] [blame] | 21 | - Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ |
Robert Collins | 18c9bbd | 2015-07-10 14:00:11 +1200 | [diff] [blame] | 22 | implementation in issue #21408 they are redundant. *** NOT BACKPORTED *** |
Serhiy Storchaka | 6af6ddc | 2015-01-31 12:05:05 +0200 | [diff] [blame] | 23 | |
Kushal Das | b4c7f7e | 2014-09-16 18:33:37 +0530 | [diff] [blame] | 24 | - Issue #21270: We now override tuple methods in mock.call objects so that |
| 25 | they can be used as normal call attributes. |
| 26 | |
Kushal Das | e9f7756 | 2014-06-09 13:45:56 +0530 | [diff] [blame] | 27 | - Issue #21256: Printout of keyword args should be in deterministic order in |
| 28 | a mock function call. This will help to write better doctests. |
| 29 | |
Kushal Das | c7d6c7d | 2014-04-17 01:36:14 +0530 | [diff] [blame] | 30 | - Issue #21262: New method assert_not_called for Mock. |
| 31 | It raises AssertionError if the mock has been called. |
| 32 | |
Kushal Das | 7c530f0 | 2014-04-16 23:32:21 +0530 | [diff] [blame] | 33 | - Issue #21238: New keyword argument `unsafe` to Mock. It raises |
| 34 | `AttributeError` incase of an attribute startswith assert or assret. |
| 35 | |
Michael Foord | ba2e407 | 2014-04-15 17:21:08 -0400 | [diff] [blame] | 36 | - Issue #21239: patch.stopall() didn't work deterministically when the same |
| 37 | name was patched more than once. |
| 38 | |
Kushal Das | d3135cf | 2014-04-16 01:05:50 +0530 | [diff] [blame] | 39 | - Issue #21222: Passing name keyword argument to mock.create_autospec now |
| 40 | works. |
| 41 | |
Michael Foord | 6df8ab6 | 2014-04-14 16:09:42 -0400 | [diff] [blame] | 42 | - Issue #17826: setting an iterable side_effect on a mock function created by |
| 43 | create_autospec now works. Patch by Kushal Das. |
| 44 | |
Michael Foord | 936fabd | 2014-04-14 16:25:20 -0400 | [diff] [blame] | 45 | - Issue #17826: setting an iterable side_effect on a mock function created by |
| 46 | create_autospec now works. Patch by Kushal Das. |
| 47 | |
Michael Foord | dfeef20 | 2014-04-14 11:23:48 -0400 | [diff] [blame] | 48 | - Issue #20968: unittest.mock.MagicMock now supports division. |
| 49 | Patch by Johannes Baiter. |
| 50 | |
Larry Hastings | b9d1edb | 2014-01-24 06:17:25 -0800 | [diff] [blame] | 51 | - Issue #20189: unittest.mock now no longer assumes that any object for |
| 52 | which it could get an inspect.Signature is a callable written in Python. |
| 53 | Fix courtesy of Michael Foord. |
| 54 | |
Michael Foord | a98a5ba | 2013-03-19 17:22:51 -0700 | [diff] [blame] | 55 | - Issue #17467: add readline and readlines support to mock_open in |
| 56 | unittest.mock. |
| 57 | |
Antoine Pitrou | eba505c | 2013-02-03 00:23:58 +0100 | [diff] [blame] | 58 | - Issue #17015: When it has a spec, a Mock object now inspects its signature |
| 59 | when matching calls, so that arguments can be matched positionally or |
| 60 | by name. |
| 61 | |
Michael Foord | 7ea9408 | 2012-09-28 16:15:22 +0100 | [diff] [blame] | 62 | - Issue #15323: improve failure message of Mock.assert_called_once_with |
| 63 | |
Nick Coghlan | dfb2211 | 2012-05-27 18:17:07 +1000 | [diff] [blame] | 64 | - Issue #14857: fix regression in references to PEP 3135 implicit __class__ |
| 65 | closure variable (Reopens issue #12370) |
| 66 | |
Michael Foord | ac60cfa | 2012-03-25 18:16:07 +0100 | [diff] [blame] | 67 | - Issue #14295: Add unittest.mock |