test_pytypes.cpp
11.5 KB
-
Adding tests specifically to exercise pybind11::str::raw_str. (#2366) · 17320463
These tests will also alert us to any behavior changes across Python and PyPy versions. Hardening tests in preparation for changing `pybind11::str` to only hold `PyUnicodeObject` (NOT also `bytes`). Note that this test exposes that `pybind11::str` can also hold `bytes`.
Ralf W. Grosse-Kunstleve committed