From e7a478204a984f9f79a99700375d961be6d28a96 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 22 Oct 2014 19:42:55 +0100 Subject: 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. --- tests/micropython/viper_misc.py | 4 ++-- tests/micropython/viper_misc.py.exp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/micropython') 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 -- cgit v1.2.3