Skip to content
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

Adding tests to test_class_sh_disowning_mi for expanded coverage. #2918

Merged
merged 2 commits into from
Mar 25, 2021

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented Mar 24, 2021

The main purpose of this PR is to exercise disowning objects with more than one value_and_holder:

The new tests exercise curr.index 0 and 1.

The added coverage for the existing diamond-inheritance situation is minor (but easy).

@rwgk
Copy link
Collaborator Author

rwgk commented Mar 25, 2021

The CI is green, also with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT (#2879). This PR just affects tests, merging now to stay organized. This change will get reviewed internally. I'll open a new PR if there are requests for changes.

@rwgk rwgk marked this pull request as ready for review March 25, 2021 16:08
@rwgk rwgk merged commit 3108eb9 into pybind:smart_holder Mar 25, 2021
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Mar 25, 2021
@rwgk rwgk removed the needs changelog Possibly needs a changelog entry label Mar 25, 2021
@rwgk rwgk deleted the test_class_sh_disowning_mi branch March 25, 2021 16:09
@EricCousineau-TRI EricCousineau-TRI added the smart holder See: https://github.com/pybind/pybind11/blob/smart_holder/README_smart_holder.rst label Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smart holder See: https://github.com/pybind/pybind11/blob/smart_holder/README_smart_holder.rst
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants