aboutsummaryrefslogtreecommitdiff
path: root/tests/micropython
diff options
context:
space:
mode:
authorDamien George2014-10-22 19:42:55 +0100
committerDamien George2014-10-22 19:42:55 +0100
commite7a478204a984f9f79a99700375d961be6d28a96 (patch)
treeb975cc3e81b2f002a2b131f3b3fb1c371ea535c9 /tests/micropython
parentefa04eafd3525d958ccfa75257e6ab572b82f97a (diff)
py: Remove unused and unneeded SystemError exception.
It's purpose is for internal errors that are not catastrophic (ie not as bad as RuntimeError). Since we don't use it, we don't need it.
Diffstat (limited to 'tests/micropython')
-rw-r--r--tests/micropython/viper_misc.py4
-rw-r--r--tests/micropython/viper_misc.py.exp2
2 files changed, 3 insertions, 3 deletions
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