Ignore broad-exception-raised pylint warnings in tests (#119468)
This commit is contained in:
parent
0c79eeabdf
commit
2a7e78a80f
12 changed files with 18 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue