Skip to content

Commit 6d93868

Browse files
committed
mypy doesn't like this variable re-use
1 parent 5634503 commit 6d93868

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_task.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ def mocked_get_path(path: str) -> Any:
5353
return lambda: self.backend
5454
return get_path(path)
5555

56-
patch = mock.patch(
56+
backend_patch = mock.patch(
5757
'django_lightweight_queue.app_settings.BACKEND',
5858
new='test-backend',
5959
)
60-
patch.start()
61-
self.addCleanup(patch.stop)
62-
patch = mock.patch(
60+
backend_patch.start()
61+
self.addCleanup(backend_patch.stop)
62+
get_path_patch = mock.patch(
6363
'django_lightweight_queue.utils.get_path',
6464
side_effect=mocked_get_path,
6565
)
66-
patch.start()
67-
self.addCleanup(patch.stop)
66+
get_path_patch.start()
67+
self.addCleanup(get_path_patch.stop)
6868

6969
def tearDown(self) -> None:
7070
super().tearDown()

0 commit comments

Comments
 (0)