llvm-project
27f2908f - [lldb] Use PyBytes and PyByteArray in Python Data Objects unittest (#82098)

Commit
1 year ago
[lldb] Use PyBytes and PyByteArray in Python Data Objects unittest (#82098) Use a Python Bytes and ByteArray object instead of Integers for TestOwnedReferences and TestBorrowedReferences. These two tests were failing when building against Python 3.12 because these Integer objects had a refcount of 4294967296 (-1). I didn't dig into it, but I suspect the Python runtime has adopted an optimization to decrease refcounting traffic for these simple objects.
Author
Parents
Loading