Skip to content

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

Merged
rwgk merged 2 commits into
pybind:masterfrom
rwgk:holder_caster_traits_test
Apr 10, 2025
Merged

Add holder caster traits tests in test_smart_ptr.cpp,py#5603
rwgk merged 2 commits into
pybind:masterfrom
rwgk:holder_caster_traits_test

Conversation

@rwgk

@rwgkrwgk commented Apr 7, 2025

Copy link
Copy Markdown
Collaborator

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
@rwgkrwgk mentioned this pull request Apr 7, 2025
@rwgkrwgk changed the title Add holder caster traits test in test_smart_ptr.cpp,pyAdd holder caster traits tests in test_smart_ptr.cpp,pyApr 10, 2025
@rwgk
rwgk merged commit 31e52b2 into pybind:masterApr 10, 2025
@rwgk
rwgk deleted the holder_caster_traits_test branch April 10, 2025 19:37
@github-actionsgithub-actionsBot added the needs changelog Possibly needs a changelog entry label Apr 10, 2025
@rwgkrwgk removed the needs changelog Possibly needs a changelog entry label Apr 10, 2025
Sign up for freeto 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

@rwgk@henryiii