gh-125522 : add explicit exception types to bare excepts in tests (#125523)

This commit is contained in:
Irit Katriel 2024-10-15 17:00:04 +01:00 committed by GitHub
parent c9826c11db
commit e97910cdb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 38 additions and 38 deletions

View file

@ -1185,7 +1185,7 @@ class CoroutineTest(unittest.TestCase):
async def g():
try:
raise KeyError
except:
except KeyError:
return await f()
_, result = run_async(g())