commit | b0432bc032b6f9858e96457276c0f37352103e30 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue May 30 08:17:00 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Tue May 30 08:17:00 2006 +0000 |
tree | 4851043ca4a2fd3dcd17f26589a534faa1848fe4 | |
parent | 5b72cd321d06afb23affedda6674303971156497 [diff] |
Do the check for no keyword arguments in __init__ so that subclasses of Exception can be supplied keyword args
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 20e76b9..6d6adbe 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py
@@ -299,7 +299,7 @@ try: BaseException(a=1) -except TypeErrror: +except TypeError: pass else: raise TestFailed("BaseException shouldn't take keyword args")