mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +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
|
@ -543,7 +543,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
script = textwrap.dedent("""\
|
||||
try:
|
||||
raise ValueError
|
||||
except:
|
||||
except ValueError:
|
||||
raise NameError from None
|
||||
""")
|
||||
with os_helper.temp_dir() as script_dir:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue