tests: Add test for exception-chaining raise syntax.
This commit is contained in:
parent
2ff2ea5f3b
commit
ab2594e341
|
@ -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")
|
|
@ -0,0 +1,2 @@
|
|||
Caught Exception
|
||||
Warning: exception chaining not supported
|
Loading…
Reference in New Issue