Skip to content

Commit a6c0caa

Browse files
committed
use sys.exit
1 parent 011f97c commit a6c0caa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/install_pyodide_libs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import importlib.util
55
import micropip
66
import asyncio
7+
import sys
78

89
PARENT_DIR = os.path.dirname(os.path.abspath(__file__))
910
ROOT_DIR = os.path.dirname(PARENT_DIR)
@@ -67,6 +68,7 @@ async def main():
6768
try:
6869
await install_missing_libraries(file, previously_installed)
6970
except Exception as e:
71+
sys.exit(1)
7072
raise ValueError(f"failed to install library in file: {file}")
7173

7274

0 commit comments

Comments
 (0)