diff --git a/tests/test_spider_yield_seeds.py b/tests/test_spider_yield_seeds.py index 44030abd0..67b2857dd 100644 --- a/tests/test_spider_yield_seeds.py +++ b/tests/test_spider_yield_seeds.py @@ -203,7 +203,7 @@ class MainTestCase(TestCase): async def test_exception_before_yield(self): async def yield_seeds(spider): raise RuntimeError - yield + yield # pylint: disable=unreachable with LogCapture() as log: await self._test_yield_seeds(yield_seeds, []) diff --git a/tests/test_spidermiddleware_process_seeds.py b/tests/test_spidermiddleware_process_seeds.py index fccdca0f1..10dd560fa 100644 --- a/tests/test_spidermiddleware_process_seeds.py +++ b/tests/test_spidermiddleware_process_seeds.py @@ -275,7 +275,7 @@ class MainTestCase(TestCase): async def test_exception_before_yield(self): async def process_seeds(mw, seeds): raise RuntimeError - yield + yield # pylint: disable=unreachable with LogCapture() as log: await self._test_process_seeds(process_seeds, [])