msgspec
msgspec copied to clipboard
Relax all getrefcount tests to allow lower numbers
This is related to https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-refcount
Created via:
sed -Ei 's/sys\.getrefcount\(([^\)]+)\) == ([0-9]+)/sys.getrefcount(\1) <= \2/' tests/test_*.py
Perhaps this is too strong a hammer, but it makes the tests pass on 3.14.