tests/exception.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/exception.py Sat Jun 28 20:46:45 2008 +0200 1.3 @@ -0,0 +1,16 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class E: 1.7 + pass 1.8 + 1.9 +def f(x, y): 1.10 + try: 1.11 + g(x) 1.12 + except E, exc: 1.13 + return y 1.14 + return x 1.15 + 1.16 +def g(x): 1.17 + raise E, x 1.18 + 1.19 +# vim: tabstop=4 expandtab shiftwidth=4