]> granicus.if.org Git - python/commit
bpo-33516: Add support for __round__ in MagicMock (GH-6880)
authorJohn Reese <john@noswap.com>
Tue, 22 May 2018 20:01:10 +0000 (13:01 -0700)
committerVictor Stinner <vstinner@redhat.com>
Tue, 22 May 2018 20:01:10 +0000 (22:01 +0200)
commit6c4fab0f4b95410a1a964a75dcdd953697eff089
tree3c63f129157aca2bf0c4294f7870ce61696b0806
parent4e29f566e8821c09d8274eadcdd355e8b1284b8b
bpo-33516: Add support for __round__ in MagicMock (GH-6880)

unittest.mock.MagicMock now supports the __round__() magic method.
Doc/library/unittest.mock.rst
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmagicmethods.py
Misc/NEWS.d/next/Library/2018-05-15-17-06-42.bpo-33516.ZzARe4.rst [new file with mode: 0644]