summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_generators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index a5b2c37..5bad79a 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -47,7 +47,7 @@ Let's try a simple generator:
>>> def f():
... yield 1
- ... return
+ ... raise StopIteration
... yield 2 # never reached
...
>>> g = f()