-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXPERIMENT: pybind11_tests INTENTIONAL BREAKAGE #3965
Conversation
For easy future reference, direct link to the CI results: https://github.com/pybind/pybind11/actions/runs/2363503482 I downloaded the CI log archive: https://github.com/pybind/pybind11/suites/6603861876/logs?attempt=1 (logs_20001.zip) After unzip:
I.e. The root cause error message is lost. @Skylion007 @henryiii @virtuald I believe for Python >= 3.3, this was unfortunately broken by PR #2112, we all missed it. Randomly picked example:
|
…ists already on master (see PR pybind#3965).
To confirm, is it that |
I don't know which part is failing. My guess is that it is somehow specific to importing a pybind11 extension.
Yes, I'm thinking that, too. Something like a new raise_error_on_import.cpp which we import from test_exceptions.py, then check the exception to be sure it has outer and inner. |
Summary:
Example outputs below:
Seems to be exactly like this bug from 10+ years ago: I verified conclusively (interactively) that this is still the case with pytest 7.1.2 (latest released). Once you know it's easy enough to deal with it, but if you don't, it really is a bad trap.
|
Description
Is
raise_from
inPYBIND11_CATCH_INIT_EXCEPTIONS
working as intended?Suggested changelog entry: