mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00

used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
46 lines
467 B
Text
46 lines
467 B
Text
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
|
|
spam
|
|
IndentationError
|
|
spam
|
|
TabError
|
|
spam
|
|
SystemError
|
|
(hard to reproduce)
|
|
spam
|
|
SystemExit
|
|
spam
|
|
TypeError
|
|
spam
|
|
ValueError
|
|
spam
|
|
ZeroDivisionError
|
|
spam
|
|
Exception
|