def test_excinfo_simple():
try:
raise ValueError
except ValueError:
-> info = py.code.ExceptionInfo()
assert info.type == ValueError