Test that a background task generator cannot be chained.
(self)
| 1764 | await self.background_task() |
| 1765 | |
| 1766 | async def bad_chain2(self): |
| 1767 | """Test that a background task generator cannot be chained.""" |
| 1768 | async for _foo in self.background_task_generator(): |
| 1769 | pass |
| 1770 | |
| 1771 | |
| 1772 | @pytest.mark.asyncio |
no test coverage detected