summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_generators.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-11-27 20:37:43 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-11-27 20:37:43 (GMT)
commitfcf4435ae02c3962a8ad71a9539877060c694468 (patch)
tree66b05ecac0df3d4105c15ee62f6ea8b520e87312 /Lib/test/test_generators.py
parent307021f40b227d2bf114b536c37cc41e03fc2aff (diff)
downloadcpython-fcf4435ae02c3962a8ad71a9539877060c694468.zip
cpython-fcf4435ae02c3962a8ad71a9539877060c694468.tar.gz
cpython-fcf4435ae02c3962a8ad71a9539877060c694468.tar.bz2
Improve test coverage. Hope the test_file changes work the same on windows.
Diffstat (limited to 'Lib/test/test_generators.py')
-rw-r--r--Lib/test/test_generators.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index cb7e992..48c9674 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -1589,6 +1589,11 @@ Traceback (most recent call last):
...
ValueError: 7
+>>> f().throw("abc") # throw on just-opened generator
+Traceback (most recent call last):
+ ...
+TypeError: exceptions must be classes, or instances, not str
+
Now let's try closing a generator: