From d2623d778663c1fee90a8835c00d0caa5690d2bd Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Mon, 14 Apr 2014 11:23:48 -0400 Subject: Issue 20968. unittest.mock.MagicMock now supports division --- Lib/unittest/mock.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Lib/unittest/mock.py') diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 8b76503429..a23df5a73d 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()) -- cgit v1.2.1