test_ok2/doc/en/example/py2py3/test_py3.py

6 lines
104 B
Python

def test_exception_syntax():
try:
0 / 0
except ZeroDivisionError as e:
assert e