mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-33516: Add support for __round__ in MagicMock (GH-6880)
unittest.mock.MagicMock now supports the __round__() magic method.
This commit is contained in:
parent
4e29f566e8
commit
6c4fab0f4b
4 changed files with 8 additions and 2 deletions
|
@ -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 "
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue