File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def f():
3535 except Exception as er :
3636 e = er
3737 micropython .heap_unlock ()
38- print (repr (e )[:50 ])
38+ print (repr (e )[:10 ])
3939
4040 # create an exception with a long formatted error message while heap is low
4141 # should use the heap and truncate the message
@@ -51,7 +51,7 @@ def f():
5151 e = er
5252 lst [0 ] = None
5353 lst = None
54- print (repr (e )[:43 ])
54+ print (repr (e )[:10 ])
5555
5656 # raise a deep exception with the heap locked
5757 # should use emergency exception and be unable to resize traceback array
@@ -63,7 +63,7 @@ def g():
6363 except Exception as er :
6464 e = er
6565 micropython .heap_unlock ()
66- print (repr (e ))
66+ print (repr (e )[: 13 ] )
6767
6868 # create an exception on the heap with some traceback on the heap, but then
6969 # raise it with the heap locked so it can't allocate any more traceback
Original file line number Diff line number Diff line change 11Exception()
2- TypeError("unexpected keyword argument 'abcdefghij
3- TypeError("unexpected keyword argument 'abc
4- RuntimeError('maximum recursion depth exceeded',)
2+ TypeError(
3+ TypeError(
4+ RuntimeError(
55Exception('my exception',)
You can’t perform that action at this time.
0 commit comments