From: Serhiy Storchaka Date: Sun, 19 Jun 2016 15:30:43 +0000 (+0300) Subject: Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes. X-Git-Tag: v3.6.0a3~111^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5943ea76d529f9ea18c73a61e10c6f53bdcc864f;p=thirdparty%2FPython%2Fcpython.git Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes. --- diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 86a5a3dfebd8..1adfcf925795 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -1694,6 +1694,7 @@ _non_defaults = { '__reduce__', '__reduce_ex__', '__getinitargs__', '__getnewargs__', '__getstate__', '__setstate__', '__getformat__', '__setformat__', '__repr__', '__dir__', '__subclasses__', '__format__', + '__getnewargs_ex__', }