mirror of
https://github.com/pybind/pybind11.git
synced 2026-07-11 01:26:58 +00:00
Various changes.
This commit is contained in:
@@ -230,8 +230,8 @@ TEST_SUBMODULE(exceptions, m) {
|
||||
if ((err && e.what() != std::string("ValueError: foo"))
|
||||
|| (!err
|
||||
&& e.what()
|
||||
!= std::string("Internal error: error_string() called without a Python "
|
||||
"error available."))) {
|
||||
!= std::string("Internal error: pybind11::detail::error_already_set "
|
||||
"called while Python error indicator not set."))) {
|
||||
PyErr_Clear();
|
||||
throw std::runtime_error("error message mismatch");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user