Skip to content

Add holder caster traits tests in test_smart_ptr.cpp,py #5603

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

Merged
merged 2 commits into from
Apr 10, 2025

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented Apr 7, 2025

Description

Add unit tests for these holder caster traits:

  • copyable_holder_caster_shared_ptr_with_smart_holder_support_enabled
  • move_only_holder_caster_unique_ptr_with_smart_holder_support_enabled

To be documented in the pybind11 v3.0 Upgrade guide (PR #5589).

While at it, add a matching "to demonstrate" provision to the existing type_caster_enum_type_enabled trait test.

A changelog entry is not needed.

@rwgk rwgk marked this pull request as ready for review April 7, 2025 16:06
@rwgk rwgk changed the title Add holder caster traits test in test_smart_ptr.cpp,py Add holder caster traits tests in test_smart_ptr.cpp,py Apr 10, 2025
@rwgk rwgk merged commit 31e52b2 into pybind:master Apr 10, 2025
2 checks passed
@rwgk rwgk deleted the holder_caster_traits_test branch April 10, 2025 19:37
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Apr 10, 2025
@rwgk rwgk removed the needs changelog Possibly needs a changelog entry label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants