Issue 20968. unittest.mock.MagicMock now supports division

This commit is contained in:
Michael Foord 2014-04-14 11:23:48 -04:00
parent 604453c9ce
commit d2623d7786
3 changed files with 31 additions and 1 deletions

View file

@ -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())