Searched refs:MyException5_1 (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_exceptions.cpp57 class MyException5_1 : public MyException5 { class in inherits:MyException5
109 // A slightly more complicated one that declares MyException5_1 as a subclass of MyException5
110 py::register_exception<MyException5_1>(m, "MyException5_1", ex5.ptr());
117 m.def("throws5_1", []() { throw MyException5_1("MyException5 subclass"); });
H A Dtest_exceptions.py91 assert isinstance(excinfo.value, m.MyException5_1)
93 with pytest.raises(m.MyException5_1) as excinfo:
100 except m.MyException5_1:

Completed in 5 milliseconds