From: Berker Peksag Date: Sun, 17 Jul 2016 12:26:46 +0000 (+0300) Subject: Issue #27531: Update signature of Mock.assert_not_called method X-Git-Tag: v3.6.0a4~156^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebf9fd31a8173372551115d2ddb2b50553565500;p=thirdparty%2FPython%2Fcpython.git Issue #27531: Update signature of Mock.assert_not_called method Since 01ae1ac2daf4, it doesn't accept any arguments. Patch by Michael Killough. --- diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 5c9177a9c879..c13f09512c48 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -324,7 +324,7 @@ the *new_callable* argument to :func:`patch`. >>> calls = [call(4), call(2), call(3)] >>> mock.assert_has_calls(calls, any_order=True) - .. method:: assert_not_called(*args, **kwargs) + .. method:: assert_not_called() Assert the mock was never called.