Skip to content

Commit b50a941

Browse files
farisbashaStanFromIreland
authored andcommitted
gh-103484: Remove an outdated footnote in the unittest.mock examples (GH-162166)
(cherry picked from commit f5ec90d) Co-authored-by: Faris Basha TM <72191505+farisbasha@users.noreply.github.com> Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 22e7dae commit b50a941

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎Doc/library/unittest.mock-examples.rst‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ Mocking a generator method
642642
~~~~~~~~~~~~~~~~~~~~~~~~~~
643643

644644
A Python generator is a function or method that uses the :keyword:`yield` statement
645-
to return a series of values when iterated over [#]_.
645+
to return a series of values when iterated over.
646646

647647
A generator method / function is called to return the generator object. It is
648648
the generator object that is then iterated over. The protocol method for
@@ -671,12 +671,6 @@ To configure the values returned from the iteration (implicit in the call to
671671
>>> list(mock_foo.iter())
672672
[1, 2, 3]
673673

674-
.. [#] There are also generator expressions and more `advanced uses
675-
<http://www.dabeaz.com/coroutines/index.html>`_ of generators, but we aren't
676-
concerned about them here. A very good introduction to generators and how
677-
powerful they are is: `Generator Tricks for Systems Programmers
678-
<http://www.dabeaz.com/generators/>`_.
679-
680674

681675
Applying the same patch to every test method
682676
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)