summaryrefslogtreecommitdiff
path: root/Lib/unittest/mock.py
diff options
context:
space:
mode:
authorJohn Reese <john@noswap.com>2018-05-22 13:01:10 -0700
committerVictor Stinner <vstinner@redhat.com>2018-05-22 22:01:10 +0200
commit6c4fab0f4b95410a1a964a75dcdd953697eff089 (patch)
tree3c63f129157aca2bf0c4294f7870ce61696b0806 /Lib/unittest/mock.py
parent4e29f566e8821c09d8274eadcdd355e8b1284b8b (diff)
downloadcpython-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.py2
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 "
)