commit | 6edd2586082f62a5ac61af5acab77b63919faa47 | [log] [tgz] |
---|---|---|
author | Phillip J. Eby <pje@telecommunity.com> | Sat Mar 25 00:28:24 2006 +0000 |
committer | Phillip J. Eby <pje@telecommunity.com> | Sat Mar 25 00:28:24 2006 +0000 |
tree | 183890c03fa62ea02b86afbcca1273427d03f72e | |
parent | bee071221419795d707a15286e08424d141a6ca6 [diff] |
Fix a problem with @contextmanager not detecting a broken generator that yields after a throw(). Make @contextmanager not reraise exceptions, but return a false value in that case instead. Add test cases for both behaviors.