diff options
Diffstat (limited to 'tests/basics/exception_chain.py')
-rw-r--r-- | tests/basics/exception_chain.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/exception_chain.py b/tests/basics/exception_chain.py new file mode 100644 index 0000000000..c3a7d6b113 --- /dev/null +++ b/tests/basics/exception_chain.py @@ -0,0 +1,6 @@ +# Exception chaining is not supported, but check that basic +# exception works as expected. +try: + raise Exception from None +except Exception: + print("Caught Exception") |