From: Kushal Das Date: Wed, 16 Apr 2014 20:24:07 +0000 (+0530) Subject: Removes unused varargs and varkwargs from assert_not_called(). X-Git-Tag: v3.5.0a1~1843 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68290f48953340c5ec063cd12e3c37959122f081;p=thirdparty%2FPython%2Fcpython.git Removes unused varargs and varkwargs from assert_not_called(). --- diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 6c00bc66f8fb..d9c2ee96b091 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -758,7 +758,7 @@ class NonCallableMock(Base): else: return _call - def assert_not_called(_mock_self, *args, **kwargs): + def assert_not_called(_mock_self): """assert that the mock was never called. """ self = _mock_self