Closed extesy closed 1 year ago
Here is the minimal test case:
from theine import Cache cache: Cache = Cache(policy="tlfu", size=10000) def test1() -> None: print(len(cache)) cache.clear() def test2() -> None: print(len(cache)) cache.clear()
I am running this test file using pytest. Second test fails with OverflowError: cannot fit 'int' into an index-sized integer error. If I remove cache.clear() then it works. If I change the policy to "clockpro" then it also works.
OverflowError: cannot fit 'int' into an index-sized integer
cache.clear()
Environment: MacOS 13.5.1, python 3.8.16.
@extesy please upgrade theine-core to v0.4.3 and try again 🙏
@Yiling-J That fixed the problem. Thank you for a quick response!
Here is the minimal test case:
I am running this test file using pytest. Second test fails with
OverflowError: cannot fit 'int' into an index-sized integer
error. If I removecache.clear()
then it works. If I change the policy to "clockpro" then it also works.Environment: MacOS 13.5.1, python 3.8.16.