Skip to content

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