mirror of
https://github.com/python/cpython.git
synced 2025-10-14 02:43:49 +00:00
Issue 20968. unittest.mock.MagicMock now supports division
This commit is contained in:
parent
604453c9ce
commit
d2623d7786
3 changed files with 31 additions and 1 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue