mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -719,7 +719,7 @@ class NestedWith(unittest.TestCase):
|
|||
try:
|
||||
with self.Dummy() as a, self.InitRaises():
|
||||
pass
|
||||
except:
|
||||
except RuntimeError:
|
||||
pass
|
||||
self.assertTrue(a.enter_called)
|
||||
self.assertTrue(a.exit_called)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue