Exception type differs beween pybind11 versions, use std::exception.

This commit is contained in:
Markus Blatt
2023-05-05 14:43:04 +02:00
parent 3e5ac55c1b
commit 84aa367b19

View File

@@ -76,7 +76,7 @@ BOOST_AUTO_TEST_CASE(ParsePYACTION_Module_Syntax_Error) {
Action::PyAction pyaction(python, "ACT1", run_count, ok_module);
const std::string& broken_module2 = deck.makeDeckPath("action_syntax_error.py");
BOOST_CHECK_THROW(Action::PyAction(python , "ACT2", run_count, broken_module2), std::runtime_error);
BOOST_CHECK_THROW(Action::PyAction(python , "ACT2", run_count, broken_module2), std::exception);
}