pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.08k stars 2.05k forks source link

tests: avoid immortal objects in tests #5150

Closed henryiii closed 1 month ago

henryiii commented 1 month ago

Description

Follow up #5139, from #5148. Avoid immortal objects so we can track the refcounts.

Also actually compiles against 3.13t in tests, missed that in #5139, though I was doing it locally.

Suggested changelog entry:

* Avoid immortal objects in tests
henryiii commented 1 month ago

This is just a test fix for my previous PR, so will merge to rebase #5148. Can revert if there's an issue!