You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ are available (like ``assert_called_once_with`` or ``call_count`` in the example
81
81
In addition, spy objects contain four extra attributes:
82
82
83
83
* ``spy_return``: contains the last returned value of the spied function.
84
-
* ``spy_return_iter``: contains a duplicate of the last returned value of the spied function if the value was an iterator and spy was created using ``.spy(..., duplicate_iterators)``. Uses `tee <https://docs.python.org/3/library/itertools.html#itertools.tee>`__) to duplicate the iterator.
84
+
* ``spy_return_iter``: contains a duplicate of the last returned value of the spied function if the value was an iterator and spy was created using ``.spy(..., duplicate_iterators=True)``. Uses `tee <https://docs.python.org/3/library/itertools.html#itertools.tee>`__) to duplicate the iterator.
85
85
* ``spy_return_list``: contains a list of all returned values of the spied function (new in ``3.13``).
86
86
* ``spy_exception``: contain the last exception value raised by the spied function/method when
87
87
it was last called, or ``None`` if no exception was raised.
0 commit comments