File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import micropython
44
5+ # Check for stackless build, which can't call functions without
6+ # allocating a frame on the heap.
7+ try :
8+ def stackless (): pass
9+ micropython .heap_lock (); stackless (); micropython .heap_unlock ()
10+ except RuntimeError :
11+ print ("SKIP" )
12+ raise SystemExit
13+
514# some ports need to allocate heap for the emergency exception
615try :
716 micropython .alloc_emergency_exception_buf (256 )
@@ -40,8 +49,9 @@ def f():
4049 f (abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz = 1 )
4150 except Exception as er :
4251 e = er
52+ lst [0 ] = None
4353 lst = None
44- print (repr (e ))
54+ print (repr (e )[: 43 ] )
4555
4656 # raise a deep exception with the heap locked
4757 # should use emergency exception and be unable to resize traceback array
Original file line number Diff line number Diff line change 11Exception()
22TypeError("unexpected keyword argument 'abcdefghij
3- TypeError("unexpected keyword argument 'abc",)
3+ TypeError("unexpected keyword argument 'abc
44RuntimeError('maximum recursion depth exceeded',)
55Exception('my exception',)
You can’t perform that action at this time.
0 commit comments