summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/sys_tracebacklimit.py.exp
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-06-07 14:44:24 +1000
committerDamien George <damien@micropython.org>2022-06-07 16:55:18 +1000
commit1d143cec63f8dabfac5fed50fe4cfdabd414385e (patch)
treeb189215510d219d662f0bcceccfa7c21a5ec347a /tests/basics/sys_tracebacklimit.py.exp
parent9670a156dabc1c751a6b02ef280daccf5a0ed213 (diff)
downloadmicropython-1d143cec63f8dabfac5fed50fe4cfdabd414385e.tar.gz
micropython-1d143cec63f8dabfac5fed50fe4cfdabd414385e.zip
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>
Diffstat (limited to 'tests/basics/sys_tracebacklimit.py.exp')
-rw-r--r--tests/basics/sys_tracebacklimit.py.exp42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/basics/sys_tracebacklimit.py.exp b/tests/basics/sys_tracebacklimit.py.exp
new file mode 100644
index 0000000000..3647280584
--- /dev/null
+++ b/tests/basics/sys_tracebacklimit.py.exp
@@ -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