mirror of https://github.com/python/cpython
53 lines
591 B
Plaintext
53 lines
591 B
Plaintext
test_exceptions
|
|
5. Built-in exceptions
|
|
spam
|
|
AttributeError
|
|
spam
|
|
EOFError
|
|
spam
|
|
IOError
|
|
spam
|
|
ImportError
|
|
spam
|
|
IndexError
|
|
'spam'
|
|
KeyError
|
|
spam
|
|
KeyboardInterrupt
|
|
(not testable in a script)
|
|
spam
|
|
MemoryError
|
|
(not safe to test)
|
|
spam
|
|
NameError
|
|
spam
|
|
OverflowError
|
|
spam
|
|
RuntimeError
|
|
(not used any more?)
|
|
spam
|
|
SyntaxError
|
|
'continue' not supported inside 'finally' clause
|
|
ok
|
|
'continue' not properly in loop
|
|
ok
|
|
'continue' not properly in loop
|
|
ok
|
|
spam
|
|
IndentationError
|
|
spam
|
|
TabError
|
|
spam
|
|
SystemError
|
|
(hard to reproduce)
|
|
spam
|
|
SystemExit
|
|
spam
|
|
TypeError
|
|
spam
|
|
ValueError
|
|
spam
|
|
ZeroDivisionError
|
|
spam
|
|
Exception
|