Skip to content

Commit 6c76951

Browse files
committed
fix linters fail
1 parent f62edaf commit 6c76951

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

redis/connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,9 +1513,7 @@ def read_response(
15131513
self._current_command_cache_entry is not None
15141514
and self._current_command_cache_entry.status == CacheEntryStatus.VALID
15151515
):
1516-
res = copy.deepcopy(
1517-
self._current_command_cache_entry.cache_value
1518-
)
1516+
res = copy.deepcopy(self._current_command_cache_entry.cache_value)
15191517
self._current_command_cache_entry = None
15201518
return res
15211519

tests/test_connection.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -592,14 +592,11 @@ def test_triggers_invalidation_processing_on_another_connection(
592592
assert another_conn.can_read.call_count == 2
593593
another_conn.read_response.assert_called_once()
594594

595-
596595
@pytest.mark.skipif(
597596
platform.python_implementation() == "PyPy",
598597
reason="Pypy doesn't support side_effect",
599598
)
600-
def test_cache_entry_in_progress(
601-
self, mock_cache, mock_connection
602-
):
599+
def test_cache_entry_in_progress(self, mock_cache, mock_connection):
603600
mock_connection.retry = "mock"
604601
mock_connection.host = "mock"
605602
mock_connection.port = "mock"
@@ -629,14 +626,11 @@ def test_cache_entry_in_progress(
629626
mock_connection.send_command.assert_called_once()
630627
mock_connection.read_response.assert_called_once()
631628

632-
633629
@pytest.mark.skipif(
634630
platform.python_implementation() == "PyPy",
635631
reason="Pypy doesn't support side_effect",
636632
)
637-
def test_cache_entry_gone_between_send_and_read(
638-
self, mock_cache, mock_connection
639-
):
633+
def test_cache_entry_gone_between_send_and_read(self, mock_cache, mock_connection):
640634
mock_connection.retry = "mock"
641635
mock_connection.host = "mock"
642636
mock_connection.port = "mock"
@@ -669,14 +663,11 @@ def test_cache_entry_gone_between_send_and_read(
669663
mock_connection.send_command.assert_not_called()
670664
mock_connection.read_response.assert_not_called()
671665

672-
673666
@pytest.mark.skipif(
674667
platform.python_implementation() == "PyPy",
675668
reason="Pypy doesn't support side_effect",
676669
)
677-
def test_cache_entry_fill_between_send_and_read(
678-
self, mock_cache, mock_connection
679-
):
670+
def test_cache_entry_fill_between_send_and_read(self, mock_cache, mock_connection):
680671
mock_connection.retry = "mock"
681672
mock_connection.host = "mock"
682673
mock_connection.port = "mock"

0 commit comments

Comments
 (0)