mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
474 B
25 lines
474 B
#include "python_type_casters.h" |
|
#include <test_suite.h> |
|
|
|
int main() { |
|
{ |
|
suite test_suite("PythonInterpreter_tests"); |
|
{ |
|
py::module::import("interpreter_test"); |
|
test_suite.has_assertion = true; |
|
} |
|
} |
|
{ |
|
suite test_suite("PythonInterpreter_tests"); |
|
{ |
|
try { |
|
py::module::import("exception_test"); |
|
} |
|
catch(const py::error_already_set &error) { |
|
test_suite.has_assertion = true; |
|
} |
|
} |
|
} |
|
|
|
return 0; |
|
}
|
|
|