summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-30 08:17:00 +0000
committerGeorg Brandl <georg@python.org>2006-05-30 08:17:00 +0000
commitb0432bc032b6f9858e96457276c0f37352103e30 (patch)
tree4851043ca4a2fd3dcd17f26589a534faa1848fe4 /Lib/test/test_exceptions.py
parent5b72cd321d06afb23affedda6674303971156497 (diff)
downloadcpython-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.py2
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")