mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
gh-125522 : add explicit exception types to bare excepts in tests (#125523)
This commit is contained in:
parent
c9826c11db
commit
e97910cdb7
11 changed files with 38 additions and 38 deletions
|
@ -1185,7 +1185,7 @@ class CoroutineTest(unittest.TestCase):
|
|||
async def g():
|
||||
try:
|
||||
raise KeyError
|
||||
except:
|
||||
except KeyError:
|
||||
return await f()
|
||||
|
||||
_, result = run_async(g())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue