Commit Graph

3 Commits

Author SHA1 Message Date
Damien George
7db50ccf5f tests/basics: Skip exception_chain and self_type_check on unix minimal.
These two tests can't run on the unix minimal build because it doesn't have
the relevant build options enabled.  So skip them.

Signed-off-by: Damien George <damien@micropython.org>
2025-10-02 00:37:29 +10:00
Matthias Urlichs
3fb1bb131f 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.
2023-10-09 09:46:02 +11:00
Paul Sokolovsky
ab2594e341 tests: Add test for exception-chaining raise syntax. 2015-09-01 10:39:11 +03:00