diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-03-12 18:42:48 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-03-12 18:42:48 (GMT) |
commit | 9bd8af788d4f788ae678898b5edff035fe2b9a8e (patch) | |
tree | 67e57a7ee03bcb0af6cd173a8d158b5dfc7aa21a /Lib/unittest/mock.py | |
parent | 4a0e14730b8cc6ae5b13d634069ea38fa08bc24a (diff) | |
download | cpython-9bd8af788d4f788ae678898b5edff035fe2b9a8e.zip cpython-9bd8af788d4f788ae678898b5edff035fe2b9a8e.tar.gz cpython-9bd8af788d4f788ae678898b5edff035fe2b9a8e.tar.bz2 |
Issue #23581: Add matmul support to MagicMock.
Patch by Håkan Lövdahl.
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r-- | Lib/unittest/mock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 3b7c157..d6a766d 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -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()) |