mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #23568: Add rdivmod support to MagicMock() objects.
Patch by Håkan Lövdahl.
This commit is contained in:
parent
b19542d062
commit
a785dece57
3 changed files with 21 additions and 1 deletions
|
@ -1644,7 +1644,9 @@ magic_methods = (
|
|||
"len contains iter "
|
||||
"hash str sizeof "
|
||||
"enter exit "
|
||||
"divmod neg pos abs invert "
|
||||
# we added divmod and rdivmod here instead of numerics
|
||||
# because there is no idivmod
|
||||
"divmod rdivmod neg pos abs invert "
|
||||
"complex int float index "
|
||||
"trunc floor ceil "
|
||||
"bool next "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue