diff options
author | Michael Foord <michael@voidspace.org.uk> | 2014-04-14 15:23:48 (GMT) |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2014-04-14 15:23:48 (GMT) |
commit | d2623d778663c1fee90a8835c00d0caa5690d2bd (patch) | |
tree | f47a9cbe1e1715a5d9779efc6bb11378a39cdd54 /Lib/unittest/mock.py | |
parent | 604453c9cea5dfcc5c6373028d0c30a4bd4f94f2 (diff) | |
download | cpython-d2623d778663c1fee90a8835c00d0caa5690d2bd.zip cpython-d2623d778663c1fee90a8835c00d0caa5690d2bd.tar.gz cpython-d2623d778663c1fee90a8835c00d0caa5690d2bd.tar.bz2 |
Issue 20968. unittest.mock.MagicMock now supports division
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 8b76503..a23df5a 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -1634,7 +1634,9 @@ magic_methods = ( "bool next " ) -numerics = "add sub mul div floordiv mod lshift rshift and xor or pow " +numerics = ( + "add sub mul div floordiv mod lshift rshift and xor or pow truediv" +) inplace = ' '.join('i%s' % n for n in numerics.split()) right = ' '.join('r%s' % n for n in numerics.split()) |