blob: ab7213517ac4220af1cea6524a1238837f96003b [file] [log] [blame]
Łukasz Langaf31b1762015-04-13 23:12:42 -07001- Issue #23310: Fix MagicMock's initializer to work with __methods__, just
2 like configure_mock(). Patch by Kasia Jachim.
3
Berker Peksagfb2f1f52015-03-15 01:51:56 +02004- Issue #23568: Add rdivmod support to MagicMock() objects.
5 Patch by Håkan Lövdahl.
6
Berker Peksage3d21b42015-03-12 20:42:48 +02007- Issue #23581: Add matmul support to MagicMock. Patch by Håkan Lövdahl.
8
Serhiy Storchaka6af6ddc2015-01-31 12:05:05 +02009- Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
10 implementation in issue #21408 they are redundant. **** NOT BACKPORTED ****
11
Kushal Dasb4c7f7e2014-09-16 18:33:37 +053012- Issue #21270: We now override tuple methods in mock.call objects so that
13 they can be used as normal call attributes.
14
Kushal Dase9f77562014-06-09 13:45:56 +053015- Issue #21256: Printout of keyword args should be in deterministic order in
16 a mock function call. This will help to write better doctests.
17
Kushal Dasc7d6c7d2014-04-17 01:36:14 +053018- Issue #21262: New method assert_not_called for Mock.
19 It raises AssertionError if the mock has been called.
20
Kushal Das7c530f02014-04-16 23:32:21 +053021- Issue #21238: New keyword argument `unsafe` to Mock. It raises
22 `AttributeError` incase of an attribute startswith assert or assret.
23
Michael Foordba2e4072014-04-15 17:21:08 -040024- Issue #21239: patch.stopall() didn't work deterministically when the same
25 name was patched more than once.
26
Kushal Dasd3135cf2014-04-16 01:05:50 +053027- Issue #21222: Passing name keyword argument to mock.create_autospec now
28 works.
29
Michael Foord6df8ab62014-04-14 16:09:42 -040030- Issue #17826: setting an iterable side_effect on a mock function created by
31 create_autospec now works. Patch by Kushal Das.
32
Michael Foord936fabd2014-04-14 16:25:20 -040033- Issue #17826: setting an iterable side_effect on a mock function created by
34 create_autospec now works. Patch by Kushal Das.
35
Michael Foorddfeef202014-04-14 11:23:48 -040036- Issue #20968: unittest.mock.MagicMock now supports division.
37 Patch by Johannes Baiter.
38
Larry Hastingsb9d1edb2014-01-24 06:17:25 -080039- Issue #20189: unittest.mock now no longer assumes that any object for
40 which it could get an inspect.Signature is a callable written in Python.
41 Fix courtesy of Michael Foord.
42
Michael Foorda98a5ba2013-03-19 17:22:51 -070043- Issue #17467: add readline and readlines support to mock_open in
44 unittest.mock.
45
Antoine Pitroueba505c2013-02-03 00:23:58 +010046- Issue #17015: When it has a spec, a Mock object now inspects its signature
47 when matching calls, so that arguments can be matched positionally or
48 by name.
49
Michael Foord7ea94082012-09-28 16:15:22 +010050- Issue #15323: improve failure message of Mock.assert_called_once_with
51
Nick Coghlandfb22112012-05-27 18:17:07 +100052- Issue #14857: fix regression in references to PEP 3135 implicit __class__
53 closure variable (Reopens issue #12370)
54
Michael Foordac60cfa2012-03-25 18:16:07 +010055- Issue #14295: Add unittest.mock