Skip to content

Commit d4dc3e6

Browse files
authored
Update docs/usage.rst
1 parent bb656d3 commit d4dc3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ are available (like ``assert_called_once_with`` or ``call_count`` in the example
8181
In addition, spy objects contain four extra attributes:
8282

8383
* ``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.
8585
* ``spy_return_list``: contains a list of all returned values of the spied function (new in ``3.13``).
8686
* ``spy_exception``: contain the last exception value raised by the spied function/method when
8787
it was last called, or ``None`` if no exception was raised.

0 commit comments

Comments
 (0)