mirror of https://github.com/python/cpython.git
24 lines
331 B
Plaintext
24 lines
331 B
Plaintext
|
test_exceptions
|
||
|
5. Built-in exceptions
|
||
|
AttributeError
|
||
|
EOFError
|
||
|
IOError
|
||
|
ImportError
|
||
|
IndexError
|
||
|
KeyError
|
||
|
KeyboardInterrupt
|
||
|
(not testable in a script)
|
||
|
MemoryError
|
||
|
(not safe to test)
|
||
|
NameError
|
||
|
OverflowError
|
||
|
RuntimeError
|
||
|
(not used any more?)
|
||
|
SyntaxError
|
||
|
SystemError
|
||
|
(hard to reproduce)
|
||
|
SystemExit
|
||
|
TypeError
|
||
|
ValueError
|
||
|
ZeroDivisionError
|