diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-22 19:42:55 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-22 19:42:55 +0100 |
commit | e7a478204a984f9f79a99700375d961be6d28a96 (patch) | |
tree | b975cc3e81b2f002a2b131f3b3fb1c371ea535c9 /tests/micropython/viper_misc.py | |
parent | efa04eafd3525d958ccfa75257e6ab572b82f97a (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/viper_misc.py')
-rw-r--r-- | tests/micropython/viper_misc.py | 4 |
1 files changed, 2 insertions, 2 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 |