]> granicus.if.org Git - python/commitdiff
Issue #27531: Update signature of Mock.assert_not_called method
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 17 Jul 2016 12:26:46 +0000 (15:26 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 17 Jul 2016 12:26:46 +0000 (15:26 +0300)
Since 01ae1ac2daf4, it doesn't accept any arguments.

Patch by Michael Killough.

Doc/library/unittest.mock.rst

index 5c9177a9c8791220e1ad0fb22e0106e7db289595..c13f09512c48ccd54dfce79e641fd418b442eb46 100644 (file)
@@ -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.