python-pytoml/Avoid-annoying-SystemExit-breaks-in-vscode.patch
fandehui 20567c9dd1 Avoid annoying SystemExit breaks in vscode
Signed-off-by: fandehui <fandehui@xfusion.com>
2023-12-29 18:18:05 +08:00

25 lines
613 B
Diff

From 056ef47a8797334d2af737c910527e4bdf6746ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Vejn=C3=A1r?= <vejnar.martin@gmail.com>
Date: Sun, 28 Oct 2018 13:37:00 +0100
Subject: [PATCH] Avoid annoying SystemExit breaks in vscode
---
test/test.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/test.py b/test/test.py
index 0884253..21bffd8 100644
--- a/test/test.py
+++ b/test/test.py
@@ -94,4 +94,6 @@ def _main():
return 1 if failed or not succeeded else 0
if __name__ == '__main__':
- sys.exit(_main())
+ r = _main()
+ if r:
+ sys.exit(r)
--
2.27.0