diff options
| author | Paul Sokolovsky | 2017-06-10 20:14:16 +0300 |
|---|---|---|
| committer | Paul Sokolovsky | 2017-06-10 20:34:38 +0300 |
| commit | 85d809d1f4e35a511e0a56b3411126e05a31c01b (patch) | |
| tree | 8debfecd0a6b83b6ba3d7e087058eec39a7b3c79 /tests/jni | |
| parent | a2803b74f48849cb3a11fb492fee891044ecc1f4 (diff) | |
tests: Convert remaining "sys.exit()" to "raise SystemExit".
Diffstat (limited to 'tests/jni')
| -rw-r--r-- | tests/jni/list.py | 3 | ||||
| -rw-r--r-- | tests/jni/object.py | 3 | ||||
| -rw-r--r-- | tests/jni/system_out.py | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/tests/jni/list.py b/tests/jni/list.py index 6725abb5a..d58181d0b 100644 --- a/tests/jni/list.py +++ b/tests/jni/list.py @@ -1,10 +1,9 @@ -import sys import jni try: ArrayList = jni.cls("java/util/ArrayList") except: print("SKIP") - sys.exit() + raise SystemExit l = ArrayList() print(l) diff --git a/tests/jni/object.py b/tests/jni/object.py index 6cf936c4d..aa67615ec 100644 --- a/tests/jni/object.py +++ b/tests/jni/object.py @@ -1,10 +1,9 @@ -import sys import jni try: Integer = jni.cls("java/lang/Integer") except: print("SKIP") - sys.exit() + raise SystemExit # Create object i = Integer(42) diff --git a/tests/jni/system_out.py b/tests/jni/system_out.py index 7a1f18030..86c4b9e11 100644 --- a/tests/jni/system_out.py +++ b/tests/jni/system_out.py @@ -1,9 +1,8 @@ -import sys try: import jni System = jni.cls("java/lang/System") except: print("SKIP") - sys.exit() + raise SystemExit System.out.println("Hello, Java!") |
