diff options
author | John Reese <john@noswap.com> | 2018-05-22 13:01:10 -0700 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-05-22 22:01:10 +0200 |
commit | 6c4fab0f4b95410a1a964a75dcdd953697eff089 (patch) | |
tree | 3c63f129157aca2bf0c4294f7870ce61696b0806 /Lib/unittest/mock.py | |
parent | 4e29f566e8821c09d8274eadcdd355e8b1284b8b (diff) | |
download | cpython-git-6c4fab0f4b95410a1a964a75dcdd953697eff089.tar.gz |
bpo-33516: Add support for __round__ in MagicMock (GH-6880)
unittest.mock.MagicMock now supports the __round__() magic method.
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r-- | Lib/unittest/mock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 9302dedae7..e9bb463590 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -1709,7 +1709,7 @@ magic_methods = ( # because there is no idivmod "divmod rdivmod neg pos abs invert " "complex int float index " - "trunc floor ceil " + "round trunc floor ceil " "bool next " ) |