summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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 b3b85372d..56d307504 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")