diff options
author | Damien George <damien.p.george@gmail.com> | 2018-04-05 03:03:16 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-04-05 03:03:16 +1000 |
commit | b9c78425a66234c45ac5c0b159773363d185d914 (patch) | |
tree | 5610e690d98030cc2cf2a02205d8f879d1c2e1b0 | |
parent | 4caadc3c013a24af8eaaad846a8eca931cd5653e (diff) |
tests/micropython/extreme_exc.py: Allow to run without any emg exc buf.
-rw-r--r-- | tests/micropython/extreme_exc.py | 6 | ||||
-rw-r--r-- | tests/micropython/extreme_exc.py.exp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/micropython/extreme_exc.py b/tests/micropython/extreme_exc.py index 86c5fed19..b9db96406 100644 --- a/tests/micropython/extreme_exc.py +++ b/tests/micropython/extreme_exc.py @@ -35,7 +35,7 @@ def main(): except Exception as er: e = er micropython.heap_unlock() - print(repr(e)[:50]) + print(repr(e)[:10]) # create an exception with a long formatted error message while heap is low # should use the heap and truncate the message @@ -51,7 +51,7 @@ def main(): e = er lst[0] = None lst = None - print(repr(e)[:43]) + print(repr(e)[:10]) # raise a deep exception with the heap locked # should use emergency exception and be unable to resize traceback array @@ -63,7 +63,7 @@ def main(): except Exception as er: e = er micropython.heap_unlock() - print(repr(e)) + print(repr(e)[:13]) # create an exception on the heap with some traceback on the heap, but then # raise it with the heap locked so it can't allocate any more traceback diff --git a/tests/micropython/extreme_exc.py.exp b/tests/micropython/extreme_exc.py.exp index 33f942cbc..956257e4c 100644 --- a/tests/micropython/extreme_exc.py.exp +++ b/tests/micropython/extreme_exc.py.exp @@ -1,5 +1,5 @@ Exception() -TypeError("unexpected keyword argument 'abcdefghij -TypeError("unexpected keyword argument 'abc -RuntimeError('maximum recursion depth exceeded',) +TypeError( +TypeError( +RuntimeError( Exception('my exception',) |