Skip to content

Commit b9c7842

Browse files
committed
tests/micropython/extreme_exc.py: Allow to run without any emg exc buf.
1 parent 4caadc3 commit b9c7842

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/micropython/extreme_exc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Exception()
2-
TypeError("unexpected keyword argument 'abcdefghij
3-
TypeError("unexpected keyword argument 'abc
4-
RuntimeError('maximum recursion depth exceeded',)
2+
TypeError(
3+
TypeError(
4+
RuntimeError(
55
Exception('my exception',)

0 commit comments

Comments
 (0)