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 /Doc/library/unittest.mock.rst | |
| 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 'Doc/library/unittest.mock.rst')
| -rw-r--r-- | Doc/library/unittest.mock.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index bb647bb6a8..7dad3340ad 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__``, |
