-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Test failure in test_threads_ttl_expiry due to updated freezegun #131
Comments
Seems like this is related to having freezegun-0.3.11: #125. |
@dotlambda : here are my findings after investigation:
subsequently, when the cached property is accessed within a thread, the I thinks the most sensible thing is to open an issue on spulec/freezegun and request the |
Otherwise, as a fudge, it's possible to patch the with freeze_time("9999-01-01"):
time.time.call_stack_inspection_limit = 0
check.run_threads(num_threads)
self.assert_cached(check, 2 * num_threads)
self.assert_cached(check, 2 * num_threads) |
Note for the record, if I'm following the maze of somewhat confusing issues related to this correctly, spulec/freezegun@028dee2 is intended to fix it...See: |
Well, nope, that doesn't fix it apparently. Sigh. |
The fudge suggested by @althonos doesn't seem to help for me either :/ |
For me work next patch # The cache expires in the future
import freezegun.api
orig_value = freezegun.api.call_stack_inspection_limit
freezegun.api.call_stack_inspection_limit = 0
with freeze_time("9999-01-01"):
check.run_threads(num_threads)
self.assert_cached(check, 2 * num_threads)
self.assert_cached(check, 2 * num_threads)
freezegun.api.call_stack_inspection_limit = orig_value |
JFTR: Tested and didn't work for me:
Both issues
are closed and I was testing with recent freezegun version 0.3.15. I have also tested the patch by @althonos with no success. Is there any way forward to get the test suite running completely again? |
FWIW, I just did test Fedora builds of cached-property 2.0.1 with the patch to disable some assertions removed, and they worked fine, so this may no longer be an issue with recent cached-property and freezegun 1.5.1... |
I'm getting the following test failure on Python 3.7:
Do you have any idea why this could happen?
The text was updated successfully, but these errors were encountered: