tests: Add test for exception-chaining raise syntax.

pull/1446/head
Paul Sokolovsky 2015-09-01 10:38:09 +03:00
rodzic 2ff2ea5f3b
commit ab2594e341
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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")

Wyświetl plik

@ -0,0 +1,2 @@
Caught Exception
Warning: exception chaining not supported