tests broken? (redis, others?)

Issue #84 resolved
jvanasco
created an issue

I kept generating an exception when running tests in my fork

================================================================= FAILURES =================================================================
____________________________________________________ RedisTest.test_threaded_get_multi _____________________________________________________
tests/cache/_fixtures.py:237: in test_threaded_get_multi
    f()
tests/cache/_fixtures.py:235: in f
    creator)
dogpile/cache/region.py:762: in get_or_create_multi
    async_creator=lambda mutex: async_creator(orig_key, mutex)
../../webserver/environments/cliquedin-2.7.5/lib/python2.7/site-packages/dogpile.core-0.4.1-py2.7.egg/dogpile/core/dogpile.py:162: in __enter__
    return self._enter()
../../webserver/environments/cliquedin-2.7.5/lib/python2.7/site-packages/dogpile.core-0.4.1-py2.7.egg/dogpile/core/dogpile.py:91: in _enter
    value = value_fn()
dogpile/cache/region.py:760: in <lambda>
    lambda: get_value(mangled_key),
dogpile/cache/region.py:711: in get_value
    value.metadata['v'] != value_version or \
E   AttributeError: 'str' object has no attribute 'metadata'

This could have been from me (my fork makes that value pluggable) I set up a clean install of the original source, and ran the test alone (i edited setup.py to have the following:

      import pytest
    + self.pytest_args = ['tests/cache/test_redis_backend.py::RedisTest::test_threaded_get_multi']
      errno = pytest.main(self.pytest_args)

The same issue popped up.

It seems that the test constantly fails, but isn't reported or run as part of the normal routine. Can someone confirm?

Comments (1)

  1. Log in to comment