summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-10 16:09:55 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-11 00:55:08 +0200
commit5388a3c29a5f25aa195c5e4f04aae334a8c08bc4 (patch)
tree7b119fd84c81fecd380860a9f7c30d46709ae872 /tests
parentbab5cfb34f6b1ed4b16c24221479c20f5ed71c4f (diff)
downloadmicropython-5388a3c29a5f25aa195c5e4f04aae334a8c08bc4.tar.gz
micropython-5388a3c29a5f25aa195c5e4f04aae334a8c08bc4.zip
Crude attempt to implement RAISE_VARARGS (with args=1 so far only).
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/try1.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/tests/try1.py b/tests/basics/tests/try1.py
index b3b85372d7..56d3075041 100644
--- a/tests/basics/tests/try1.py
+++ b/tests/basics/tests/try1.py
@@ -4,3 +4,8 @@ try:
x.a()
except:
print(x)
+
+try:
+ raise IndexError
+except IndexError:
+ print("caught")