Skip to content

Commit a88a17b

Browse files
committed
Update tests
1 parent 2224fbc commit a88a17b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/unit_test/critical_exit/critical_exit_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
from je_auto_control import CriticalExit
24
from je_auto_control import keyboard_keys_table
35
from je_auto_control import press_keyboard_key
@@ -14,4 +16,4 @@
1416
while True:
1517
press_keyboard_key("f2")
1618
except KeyboardInterrupt:
17-
pass
19+
sys.exit(0)

test/unit_test/critical_exit/real_critical_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
print(repr(error), file=sys.stderr)
2525
CriticalExit().init_critical_exit()
2626
press_keyboard_key("f7")
27+
sys.exit(0)

0 commit comments

Comments
 (0)