Closed tavor118sn closed 1 year ago
The test suite expects the redis server and tools to be installed and available in $PATH. Is that osx? Not sure what to recommend there...
On Wed, Jan 4, 2023, 21:35 tavor118sn @.***> wrote:
Sorry to bother. You can close this issue if you want, but maybe there is a chance you can give me some guidance. I'm trying to run test, but received an error: Traceback
tox -e py39-nocov -- pytest -k test_double_acquire ✔ redis_lock
.pkg: _optional_hooks> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta legacy
.pkg: get_requires_for_build_editable> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta legacy
.pkg: get_requires_for_build_sdist> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta legacy
.pkg: build_wheel> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta legacy
.pkg: build_sdist> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta legacy
py39-nocov: install_package> python -I -m pip install --force-reinstall --no-deps /Users/petriv/Work/Pet/redis_lock/python-redis-lock/.tox/.tmp/package/23/python-redis-lock-4.0.0.tar.gz
py39-nocov: commands[0]> pytest -k test_double_acquire
========================================================================================== test session starts ===========================================================================================
platform darwin -- Python 3.9.14, pytest-7.2.0, pluggy-1.0.0
cachedir: .tox/py39-nocov/.pytest_cache
rootdir: /Users/petriv/Work/Pet/redis_lock/python-redis-lock, configfile: pytest.ini, testpaths: tests
collected 178 items / 174 deselected / 4 selected
tests/test_redis_lock.py EEEE [100%]
================================================================================================= ERRORS =================================================================================================
_ ERROR at setup of test_double_acquire[decode_responses=True-decoderesponses=True]
tests/conftest.py:16: in redis_server
wait_for_strings(redis_server.read, 2, 'ready to accept connections')
.tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings
raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % (
E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
__ ERROR at setup of test_double_acquire[decode_responses=True-decode_responses=False] ___
tests/conftest.py:16: in redis_server
wait_for_strings(redis_server.read, 2, 'ready to accept connections')
.tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings
raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % (
E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
__ ERROR at setup of test_double_acquire[decode_responses=False-decode_responses=True] ___
tests/conftest.py:16: in redis_server
wait_for_strings(redis_server.read, 2, 'ready to accept connections')
.tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings
raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % (
E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
__ ERROR at setup of test_double_acquire[decode_responses=False-decode_responses=False] __
tests/conftest.py:16: in redis_server
wait_for_strings(redis_server.read, 2, 'ready to accept connections')
.tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings
raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % (
E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
======================================================================================== short test summary info =========================================================================================
ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=True-decode_responses=True] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=True-decode_responses=False] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=False-decode_responses=True] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=False-decode_responses=False] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order !
=================================================================================== 174 deselected, 4 errors in 8.34s ====================================================================================
py39-nocov: exit 1 (8.51 seconds) /Users/redis_lock/python-redis-lock> pytest -k test_double_acquire pid=774
.pkg: _exit> python /Users/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta legacy
py39-nocov: FAIL code 1 (10.77=setup[2.26]+cmd[8.51] seconds)
evaluation failed :( (11.05 seconds)
tox was run in using venv.
— Reply to this email directly, view it on GitHub https://github.com/ionelmc/python-redis-lock/issues/103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7TXMMMYMMGOMHMO5CLXLWQXGJXANCNFSM6AAAAAATRES3W4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
redis should be ok:
redis-cli ping
PONG
Okay, thanks for response.
Sorry to bother. You can close this issue if you want, but maybe there is a chance you can give me some guidance. I'm trying to run test, but received an error:
Traceback
```shell tox -e py39-nocov -- pytest -k test_double_acquire ✔ redis_lock .pkg: _optional_hooks> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_editable> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_wheel> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /Users/petriv/Work/Pet/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ py39-nocov: install_package> python -I -m pip install --force-reinstall --no-deps /Users/petriv/Work/Pet/redis_lock/python-redis-lock/.tox/.tmp/package/23/python-redis-lock-4.0.0.tar.gz py39-nocov: commands[0]> pytest -k test_double_acquire ========================================================================================== test session starts =========================================================================================== platform darwin -- Python 3.9.14, pytest-7.2.0, pluggy-1.0.0 cachedir: .tox/py39-nocov/.pytest_cache rootdir: /Users/petriv/Work/Pet/redis_lock/python-redis-lock, configfile: pytest.ini, testpaths: tests collected 178 items / 174 deselected / 4 selected tests/test_redis_lock.py EEEE [100%] ================================================================================================= ERRORS ================================================================================================= ___________________________________________________________ ERROR at setup of test_double_acquire[decode_responses=True-decode_responses=True] ___________________________________________________________ tests/conftest.py:16: in redis_server wait_for_strings(redis_server.read, 2, 'ready to accept connections') .tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % ( E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! __________________________________________________________ ERROR at setup of test_double_acquire[decode_responses=True-decode_responses=False] ___________________________________________________________ tests/conftest.py:16: in redis_server wait_for_strings(redis_server.read, 2, 'ready to accept connections') .tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % ( E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! __________________________________________________________ ERROR at setup of test_double_acquire[decode_responses=False-decode_responses=True] ___________________________________________________________ tests/conftest.py:16: in redis_server wait_for_strings(redis_server.read, 2, 'ready to accept connections') .tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % ( E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! __________________________________________________________ ERROR at setup of test_double_acquire[decode_responses=False-decode_responses=False] __________________________________________________________ tests/conftest.py:16: in redis_server wait_for_strings(redis_server.read, 2, 'ready to accept connections') .tox/py39-nocov/lib/python3.9/site-packages/process_tests.py:247: in wait_for_strings raise AssertionError("Waited %0.2fsecs but %s did not appear in output in the given order !" % ( E AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! ======================================================================================== short test summary info ========================================================================================= ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=True-decode_responses=True] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=True-decode_responses=False] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=False-decode_responses=True] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! ERROR tests/test_redis_lock.py::test_double_acquire[decode_responses=False-decode_responses=False] - AssertionError: Waited 2.00secs but ['ready to accept connections'] did not appear in output in the given order ! =================================================================================== 174 deselected, 4 errors in 8.34s ==================================================================================== py39-nocov: exit 1 (8.51 seconds) /Users/redis_lock/python-redis-lock> pytest -k test_double_acquire pid=774 .pkg: _exit> python /Users/redis_lock/.venv/lib/python3.9/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ py39-nocov: FAIL code 1 (10.77=setup[2.26]+cmd[8.51] seconds) evaluation failed :( (11.05 seconds) ```tox was run in using venv. MacBook M1 laptop.