File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,7 +95,14 @@ def generator_with_coroutine(self):
9595
9696 def test_generators_can_take_coroutines (self ):
9797 generator = self .generator_with_coroutine ()
98+
99+ # THINK ABOUT IT:
100+ # Why is this line necessary?
101+ #
102+ # Hint: Read the "Specification: Sending Values into Generators"
103+ # section of http://www.python.org/dev/peps/pep-0342/
98104 next (generator )
105+
99106 self .assertEqual (__ , generator .send (1 + 2 ))
100107
101108 # ------------------------------------------------------------------
@@ -116,4 +123,4 @@ def test_generators_can_see_if_they_have_been_called_with_a_value(self):
116123 next (generator2 )
117124 self .assertEqual (__ , next (generator2 ))
118125
119-
126+
Original file line number Diff line number Diff line change @@ -98,7 +98,14 @@ def generator_with_coroutine(self):
9898
9999 def test_generators_can_take_coroutines (self ):
100100 generator = self .generator_with_coroutine ()
101+
102+ # THINK ABOUT IT:
103+ # Why is this line necessary?
104+ #
105+ # Hint: Read the "Specification: Sending Values into Generators"
106+ # section of http://www.python.org/dev/peps/pep-0342/
101107 next (generator )
108+
102109 self .assertEqual (__ , generator .send (1 + 2 ))
103110
104111 # ------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments