Issue #23568: Add rdivmod support to MagicMock() objects.

Patch by Håkan Lövdahl.
This commit is contained in:
Berker Peksag 2015-03-15 01:51:56 +02:00
parent b19542d062
commit a785dece57
3 changed files with 21 additions and 1 deletions

View file

@ -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 "