Skip to content

Commit c2e4ca7

Browse files
authored
revert change on documentation for call_count.
1 parent 29578a9 commit c2e4ca7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,7 @@ the *new_callable* argument to :func:`patch`.
532532

533533
.. attribute:: call_count
534534

535-
An integer telling you how many times the mock object has been called,
536-
it is the length of call_args_list:
535+
An integer telling you how many times the mock object has been called:
537536

538537
>>> mock = Mock(return_value=None)
539538
>>> mock.call_count
@@ -542,8 +541,6 @@ the *new_callable* argument to :func:`patch`.
542541
>>> mock()
543542
>>> mock.call_count
544543
2
545-
>>> mock.call_count == len(mock.call_args_list)
546-
True
547544

548545
.. attribute:: return_value
549546

0 commit comments

Comments
 (0)