Skip to content

Adding tests to test_class_sh_disowning_mi for expanded coverage. - #2918

Merged
rwgk merged 2 commits into
pybind:smart_holderfrom
rwgk:test_class_sh_disowning_mi
Mar 25, 2021
Merged

Adding tests to test_class_sh_disowning_mi for expanded coverage.#2918
rwgk merged 2 commits into
pybind:smart_holderfrom
rwgk:test_class_sh_disowning_mi

Conversation

@rwgk

@rwgkrwgk commented Mar 24, 2021

Copy link
Copy Markdown
Collaborator

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

The new tests exercise curr.index0 and 1.

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

@rwgk

rwgk commented Mar 25, 2021

Copy link
Copy Markdown
CollaboratorAuthor

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_holderMar 25, 2021
@github-actionsgithub-actionsBot added the needs changelog Possibly needs a changelog entry label Mar 25, 2021
@rwgkrwgk 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-TRIEricCousineau-TRI added the smart holder See: https://github.com/pybind/pybind11/blob/smart_holder/README_smart_holder.rst label Apr 26, 2021
@rwgkrwgk mentioned this pull request Feb 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

smart holderSee: 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

@rwgk@EricCousineau-TRI