Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 14, 2023
1 parent 5f9c1d5 commit 752ab5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/unit/backends/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from celery.utils.collections import AttributeDict
from t.unit import conftest


def raise_on_second_call(mock, exc, *retval):
def on_first_call(*args, **kwargs):
mock.side_effect = exc
Expand Down Expand Up @@ -1100,7 +1101,7 @@ def test_on_chord_part_return__other_error__ordered(self):
@pytest.mark.skipif(system() != 'Linux', reason="Test supported only for Linux setup")
def test_socket_keepalive_options(self):
pytest.importorskip('redis')
from socket import TCP_KEEPCNT, TCP_KEEPINTVL, TCP_KEEPIDLE
from socket import TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL

self.app.conf.redis_socket_keepalive = True
self.app.conf.result_backend_transport_options = {
Expand Down

0 comments on commit 752ab5f

Please sign in to comment.