summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics')
-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")