Skip to content
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

1 test fails #294

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open

1 test fails #294

wants to merge 34 commits into from

Conversation

yurivict
Copy link

========================================================================================== FAILURES ==========================================================================================
_____________________________________________________________________ TestCachedPropertyWithTTL.test_threads_ttl_expiry ______________________________________________________________________

self = <tests.test_cached_property.TestCachedPropertyWithTTL testMethod=test_threads_ttl_expiry>

    def test_threads_ttl_expiry(self):
        Check = CheckFactory(self.cached_property_factory(ttl=100000), threadsafe=True)
        check = Check()
        num_threads = 5
    
        # Same as in test_threads
        check.run_threads(num_threads)
        self.assert_cached(check, num_threads)
        self.assert_cached(check, num_threads)
    
        # The cache expires in the future
        with freeze_time("9999-01-01"):
            check.run_threads(num_threads)
>           self.assert_cached(check, 2 * num_threads)

tests/test_cached_property.py:244: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_cached_property.py:71: in assert_cached
    self.assertEqual(check.add_cached, expected)
E   AssertionError: 6 != 10
====================================================================================== warnings summary ======================================================================================

Martin Larralde and others added 30 commits December 28, 2018 13:08
* asyncio has been included since 3.3
* remove python 2 functools check
* remove obsolete utf-8 header
* add myself to authors
* remove Python 2 from README

Co-authored-by: Sean Aubin <sean@proteinqure.com>
althonos and others added 4 commits March 6, 2020 16:28
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants