summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJohn Reese <john@noswap.com>2018-05-22 20:01:10 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-05-22 20:01:10 (GMT)
commit6c4fab0f4b95410a1a964a75dcdd953697eff089 (patch)
tree3c63f129157aca2bf0c4294f7870ce61696b0806 /Doc
parent4e29f566e8821c09d8274eadcdd355e8b1284b8b (diff)
downloadcpython-6c4fab0f4b95410a1a964a75dcdd953697eff089.zip
cpython-6c4fab0f4b95410a1a964a75dcdd953697eff089.tar.gz
cpython-6c4fab0f4b95410a1a964a75dcdd953697eff089.tar.bz2
bpo-33516: Add support for __round__ in MagicMock (GH-6880)
unittest.mock.MagicMock now supports the __round__() magic method.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.mock.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index bb647bb..7dad334 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1660,7 +1660,7 @@ The full list of supported magic methods is:
* ``__hash__``, ``__sizeof__``, ``__repr__`` and ``__str__``
* ``__dir__``, ``__format__`` and ``__subclasses__``
-* ``__floor__``, ``__trunc__`` and ``__ceil__``
+* ``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``
* Comparisons: ``__lt__``, ``__gt__``, ``__le__``, ``__ge__``,
``__eq__`` and ``__ne__``
* Container methods: ``__getitem__``, ``__setitem__``, ``__delitem__``,