◐ Shell
clean mode source ↗

bpo-39593: Adding an unit test of ctypes by shihai1991 · Pull Request #18424 · python/cpython

I don't think that it's correct to add a test which indirectly specify the behavior and keep this comment which suggests to change the behavior.

I suggest to rewrite the comment to explain that we do use strlen() on purpose, rather than PyBytes_GET_SIZE() since we truncate characters after a null character on purpose. Keep the bpo number in the comment.