msgspec icon indicating copy to clipboard operation
msgspec copied to clipboard

Relax all getrefcount tests to allow lower numbers

Open hroncok opened this issue 6 months ago • 0 comments

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.

hroncok avatar May 26 '25 18:05 hroncok