8000 vm: raise tests · go-python/gpython@0838829 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0838829

Browse files
committed
vm: raise tests
1 parent 30367ff commit 0838829

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

vm/tests/raise1.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
doc="Raise not in block"
2+
err=ValueError("potato")
3+
raise err
4+
5+
err=None
6+
doc="finished"

vm/tests/raise2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
doc="Exception not in block"
2+
err=ZeroDivisionError()
3+
1/0
4+
5+
err=None
6+
doc="finished"

0 commit comments

Comments
 (0)
0