Support throw() of string exceptions.
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 4be1b4c..6b9b491 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -1545,6 +1545,9 @@
>>> g.throw(ValueError, TypeError(1)) # mismatched type, rewrapped
caught ValueError (1)
+>>> g.throw(ValueError, ValueError(1), None) # explicit None traceback
+caught ValueError (1)
+
>>> g.throw(ValueError(1), "foo") # bad args
Traceback (most recent call last):
...
@@ -1592,8 +1595,7 @@
>>> f().throw("abc") # throw on just-opened generator
Traceback (most recent call last):
...
-TypeError: exceptions must be classes, or instances, not str
-
+abc
Now let's try closing a generator: