Ignore broad-exception-raised pylint warnings in tests (#119468)

This commit is contained in:
epenet 2024-06-12 12:21:41 +02:00 committed by GitHub
parent 0c79eeabdf
commit 2a7e78a80f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 18 additions and 11 deletions

View file

@ -104,7 +104,7 @@ def test_run_does_not_block_forever_with_shielded_task(
try:
await asyncio.sleep(2)
except asyncio.CancelledError:
raise Exception
raise Exception # pylint: disable=broad-exception-raised
async def async_shielded(*_):
try:
@ -141,6 +141,7 @@ async def test_unhandled_exception_traceback(
async def _unhandled_exception():
raised.set()
# pylint: disable-next=broad-exception-raised
raise Exception("This is unhandled")
try: