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 5, 2023
1 parent b01c4d9 commit 7b6df98
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 @@ -8,7 +8,7 @@
from sys import platform

if platform == 'darwin':
from socket import TCP_KEEPCNT, TCP_KEEPALIVE, TCP_KEEPINTVL
from socket import TCP_KEEPALIVE, TCP_KEEPCNT, TCP_KEEPINTVL
else:
from socket import TCP_KEEPCNT, TCP_KEEPIDLE, TCP_KEEPINTVL

Expand All @@ -24,6 +24,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

0 comments on commit 7b6df98

Please sign in to comment.