Issue #23581: Add matmul support to MagicMock.

Patch by Håkan Lövdahl.
This commit is contained in:
Berker Peksag 2015-03-12 20:42:48 +02:00
parent 4a0e14730b
commit 9bd8af788d
3 changed files with 14 additions and 1 deletions

View file

@ -1668,7 +1668,7 @@ magic_methods = (
)
numerics = (
"add sub mul div floordiv mod lshift rshift and xor or pow truediv"
"add sub mul matmul 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())