diff options
| author | Brett Cannon <bcannon@gmail.com> | 2007-09-11 21:02:28 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2007-09-11 21:02:28 (GMT) |
| commit | 4c20bc40d73a7f4a977475e4fa02f7c8a43d796a (patch) | |
| tree | bda917217f80707f88ab8514b5c0e383fd677b40 /Lib/test/test_generators.py | |
| parent | 0b7120258a4df671291e39d3eb95a71a9dc4c186 (diff) | |
| download | cpython-4c20bc40d73a7f4a977475e4fa02f7c8a43d796a.zip cpython-4c20bc40d73a7f4a977475e4fa02f7c8a43d796a.tar.gz cpython-4c20bc40d73a7f4a977475e4fa02f7c8a43d796a.tar.bz2 | |
Generators had their throw() method allowing string exceptions. That's a
no-no.
Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
Diffstat (limited to 'Lib/test/test_generators.py')
| -rw-r--r-- | Lib/test/test_generators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 2b0d47d..5d50187 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -1622,7 +1622,7 @@ ValueError: 7 >>> f().throw("abc") # throw on just-opened generator Traceback (most recent call last): ... -abc +TypeError: exceptions must be classes, or instances, not str Now let's try closing a generator: |
