aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/exceptpoly.py16
-rw-r--r--tests/micropython/viper_misc.py4
-rw-r--r--tests/micropython/viper_misc.py.exp2
3 files changed, 11 insertions, 11 deletions
diff --git a/tests/basics/exceptpoly.py b/tests/basics/exceptpoly.py
index 2dc68c13b..b588c6b3b 100644
--- a/tests/basics/exceptpoly.py
+++ b/tests/basics/exceptpoly.py
@@ -298,15 +298,15 @@ except SyntaxError:
#except SyntaxWarning:
# print("Caught SyntaxWarning")
-try:
- raise SystemError
-except Exception:
- print("Caught SystemError via Exception")
+#try:
+# raise SystemError
+#except Exception:
+# print("Caught SystemError via Exception")
-try:
- raise SystemError
-except SystemError:
- print("Caught SystemError")
+#try:
+# raise SystemError
+#except SystemError:
+# print("Caught SystemError")
#try:
# raise TabError
diff --git a/tests/micropython/viper_misc.py b/tests/micropython/viper_misc.py
index 7e6ed67d4..25dd47355 100644
--- a/tests/micropython/viper_misc.py
+++ b/tests/micropython/viper_misc.py
@@ -69,10 +69,10 @@ print(sorted(list(viper_set(1, 2))))
# raising an exception
@micropython.viper
def viper_raise(x:int):
- raise SystemError(x)
+ raise OSError(x)
try:
viper_raise(1)
-except SystemError as e:
+except OSError as e:
print(repr(e))
# this doesn't work at the moment
diff --git a/tests/micropython/viper_misc.py.exp b/tests/micropython/viper_misc.py.exp
index 2ea26ce99..a65bd2c52 100644
--- a/tests/micropython/viper_misc.py.exp
+++ b/tests/micropython/viper_misc.py.exp
@@ -8,6 +8,6 @@
(1, 3)
[1, 3]
[1, 3]
-SystemError(1,)
+OSError(1,)
1
1