tests/basics: Add .exp file for sys.tracebacklimit test.

The sys.tracebacklimit feature has changed semantics a bit from CPython 3.7
(in the way it modifies the output), so provide a .exp file for the test so
it doesn't rely on CPython.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-06-07 14:44:24 +10:00
parent 9670a156da
commit 1d143cec63
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
Traceback (most recent call last):
File , line 62, in ftop
File , line 57, in f3
File , line 53, in f2
File , line 49, in f1
File , line 45, in f0
ValueError: value
limit 4
Traceback (most recent call last):
File , line 62, in ftop
File , line 57, in f3
File , line 53, in f2
File , line 49, in f1
ValueError: value
limit 3
Traceback (most recent call last):
File , line 62, in ftop
File , line 57, in f3
File , line 53, in f2
ValueError: value
limit 2
Traceback (most recent call last):
File , line 62, in ftop
File , line 57, in f3
ValueError: value
limit 1
Traceback (most recent call last):
File , line 62, in ftop
ValueError: value
limit 0
ValueError: value
limit -1
ValueError: value
True
False