Skip to content

Commit c7bd162

Browse files
committed
Test sys.exit
1 parent 36a0da3 commit c7bd162

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

integration_tests/exit_01.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from sys import exit
2+
3+
def main0():
4+
print("Before")
5+
exit(0)
6+
print("After")
7+
8+
main0()

integration_tests/run_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55

66
tests = [
7+
"exit_01.py",
78
"expr_01.py",
89
"expr_02.py",
910
"expr_03.py",

0 commit comments

Comments
 (0)