New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not mock time for TTLCache #477
Comments
Same:
|
+1 I'm running into this too. It's making |
to solve this cachetools would have to stop memoizing pre-patching time functions in the factories |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I've recently encountered the problem with freezing the time in TTLCache
Steps to reproduce
The problem with that is when use reference as a function parameter it caches timer=time.monotonic in defaults so freeze gun does not override it
Is there a way to overcome this?
Ive come up with the solution as overriding the standard ttlcache like so
The text was updated successfully, but these errors were encountered: