[Python-checkins] cpython: Removes unused varargs and varkwargs from assert_not_called().

kushal.das python-checkins at python.org
Wed Apr 16 22:24:15 CEST 2014


http://hg.python.org/cpython/rev/01ae1ac2daf4
changeset:   90369:01ae1ac2daf4
user:        Kushal Das <kushaldas at gmail.com>
date:        Thu Apr 17 01:54:07 2014 +0530
summary:
  Removes unused varargs and varkwargs from assert_not_called().

files:
  Lib/unittest/mock.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -758,7 +758,7 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list