commit | 861089fc49e17bc3d192e01f19641d9e01e0fa03 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue May 30 07:34:45 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Tue May 30 07:34:45 2006 +0000 |
tree | d0290b45b73c8110d7978a99ffc0d258fb14fb31 | |
parent | 008b861bf03f515b19ced29b1138a7c9fc910d82 [diff] [blame] |
Disallow keyword args for exceptions.
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index b4a766e..20e76b9 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py
@@ -296,3 +296,10 @@ ( repr(e), checkArgName, repr(expected[checkArgName]), repr(getattr(e, checkArgName)) )) + +try: + BaseException(a=1) +except TypeErrror: + pass +else: + raise TestFailed("BaseException shouldn't take keyword args")