forked from M-Labs/artiq
1
0
Fork 0
artiq/lit-test/test/inferencer/exception.py

14 lines
259 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
2015-06-29 03:48:15 +08:00
# RUN: OutputCheck %s --file-to-check=%t
# CHECK-L: Exception:<constructor Exception {}>
2015-06-29 03:48:15 +08:00
Exception
2015-06-29 05:31:06 +08:00
try:
pass
except Exception:
pass
except Exception as e:
# CHECK-L: e:Exception
e