def test_excinfo_exconly():
-> excinfo = py.test.raises(ValueError, h)
assert excinfo.exconly().startswith('ValueError')