1996-12-10 23:20:09 +00:00
|
|
|
test_exceptions
|
|
|
|
5. Built-in exceptions
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
AttributeError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
EOFError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
IOError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
ImportError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
IndexError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
KeyError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
KeyboardInterrupt
|
|
|
|
(not testable in a script)
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
MemoryError
|
|
|
|
(not safe to test)
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
NameError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
OverflowError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
RuntimeError
|
|
|
|
(not used any more?)
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
SyntaxError
|
2001-02-01 22:48:12 +00:00
|
|
|
'continue' not supported inside 'finally' clause
|
2000-09-08 16:32:34 +00:00
|
|
|
ok
|
|
|
|
'continue' not properly in loop
|
|
|
|
ok
|
|
|
|
'continue' not properly in loop
|
|
|
|
ok
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
2000-07-11 17:53:00 +00:00
|
|
|
IndentationError
|
|
|
|
spam
|
|
|
|
TabError
|
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
SystemError
|
|
|
|
(hard to reproduce)
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
SystemExit
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
TypeError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
ValueError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
1996-12-10 23:20:09 +00:00
|
|
|
ZeroDivisionError
|
2000-06-25 10:44:57 +00:00
|
|
|
spam
|
2000-05-25 23:16:54 +00:00
|
|
|
Exception
|