summaryrefslogtreecommitdiff
path: root/tests/basics/exception_chain.py.exp
diff options
context:
space:
mode:
authorMatthias Urlichs <matthias@urlichs.de>2023-10-06 21:02:43 +0200
committerDamien George <damien@micropython.org>2023-10-09 09:46:02 +1100
commit3fb1bb131f43207e2201a61139cd3f6e82d6513f (patch)
tree65b05255a532421a8d2384ff2dd6b6351ee4ca10 /tests/basics/exception_chain.py.exp
parent5232847771903e9022c8c67a436b0562e4530602 (diff)
py/vm: Don't emit warning when using "raise ... from None".
"Raise SomeException() from None" is a common Python idiom to suppress chained exceptions and thus shouldn't trigger a warning on a version of Python that doesn't support them in the first place.
Diffstat (limited to 'tests/basics/exception_chain.py.exp')
-rw-r--r--tests/basics/exception_chain.py.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/basics/exception_chain.py.exp b/tests/basics/exception_chain.py.exp
index 13635b3cd..4369e07a2 100644
--- a/tests/basics/exception_chain.py.exp
+++ b/tests/basics/exception_chain.py.exp
@@ -1,2 +1,3 @@
-Warning: exception chaining not supported
Caught Exception
+Warning: exception chaining not supported
+Caught Exception: Runtime