Do the check for no keyword arguments in __init__ so that

subclasses of Exception can be supplied keyword args
This commit is contained in:
Georg Brandl 2006-05-30 08:17:00 +00:00
parent 5b72cd321d
commit b0432bc032
2 changed files with 4 additions and 4 deletions

View file

@ -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")