diff options
author | Georg Brandl <georg@python.org> | 2006-05-30 08:17:00 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-30 08:17:00 +0000 |
commit | b0432bc032b6f9858e96457276c0f37352103e30 (patch) | |
tree | 4851043ca4a2fd3dcd17f26589a534faa1848fe4 /Lib/test/test_exceptions.py | |
parent | 5b72cd321d06afb23affedda6674303971156497 (diff) | |
download | cpython-git-b0432bc032b6f9858e96457276c0f37352103e30.tar.gz |
Do the check for no keyword arguments in __init__ so that
subclasses of Exception can be supplied keyword args
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 20e76b91ba..6d6adbee8d 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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") |