Lines Matching refs:MyException5
83 with pytest.raises(m.MyException5) as excinfo:
88 with pytest.raises(m.MyException5) as excinfo:
90 assert msg(excinfo.value) == "MyException5 subclass"
95 assert msg(excinfo.value) == "MyException5 subclass"
97 with pytest.raises(m.MyException5) as excinfo:
112 raise m.MyException5("nested error 5")
118 m.try_catch(m.MyException5, throw_myex5)
119 assert str(capture).startswith("MyException5: nested error 5")
123 m.try_catch(m.MyException5, throw_myex)
135 m.MyException5, pycatch, m.MyException, m.try_catch, m.MyException, throw_myex5)
136 assert str(capture).startswith("MyException5: nested error 5")
140 m.try_catch(m.MyException, pycatch, m.MyException5, m.throws4)
144 with pytest.raises(m.MyException5) as excinfo: