diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-03-14 23:51:56 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-03-14 23:51:56 (GMT) |
commit | a785dece572e7f2bcc8a10aab3a661208e94583e (patch) | |
tree | 4647ae8b61c4310466473d46514e858ab7f7f2c2 /Lib/unittest/mock.py | |
parent | b19542d062603031ab3f4c2f5f485f449ebc46ca (diff) | |
download | cpython-a785dece572e7f2bcc8a10aab3a661208e94583e.zip cpython-a785dece572e7f2bcc8a10aab3a661208e94583e.tar.gz cpython-a785dece572e7f2bcc8a10aab3a661208e94583e.tar.bz2 |
Issue #23568: Add rdivmod support to MagicMock() objects.
Patch by Håkan Lövdahl.
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r-- | Lib/unittest/mock.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 5555774..dcb2d8f 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -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 " |