mirror of
https://github.com/python/cpython.git
synced 2025-09-14 20:56:06 +00:00
Do the check for no keyword arguments in __init__ so that
subclasses of Exception can be supplied keyword args
This commit is contained in:
parent
5b72cd321d
commit
b0432bc032
2 changed files with 4 additions and 4 deletions
|
@ -299,7 +299,7 @@ for args in exceptionList:
|
|||
|
||||
try:
|
||||
BaseException(a=1)
|
||||
except TypeErrror:
|
||||
except TypeError:
|
||||
pass
|
||||
else:
|
||||
raise TestFailed("BaseException shouldn't take keyword args")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue