[Python-checkins] cpython (3.5): Issue #27531: Update signature of Mock.assert_not_called method
berker.peksag
python-checkins at python.org
Sun Jul 17 08:26:31 EDT 2016
https://hg.python.org/cpython/rev/b43f61118793
changeset: 102386:b43f61118793
branch: 3.5
parent: 102384:f8cb955efd6a
user: Berker Peksag <berker.peksag at gmail.com>
date: Sun Jul 17 15:26:46 2016 +0300
summary:
Issue #27531: Update signature of Mock.assert_not_called method
Since 01ae1ac2daf4, it doesn't accept any arguments.
Patch by Michael Killough.
files:
Doc/library/unittest.mock.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -324,7 +324,7 @@
>>> 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.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list