diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_exceptions | 4 | ||||
-rw-r--r-- | Lib/test/test_exceptions.py | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/output/test_exceptions b/Lib/test/output/test_exceptions index 5605114..9e021d2 100644 --- a/Lib/test/output/test_exceptions +++ b/Lib/test/output/test_exceptions @@ -28,6 +28,10 @@ RuntimeError spam SyntaxError spam +IndentationError +spam +TabError +spam SystemError (hard to reproduce) spam diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 7bc515c..06861df 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -86,6 +86,14 @@ r(SyntaxError) try: exec '/\n' except SyntaxError: pass +r(IndentationError) + +r(TabError) +# can only be tested under -tt, and is the only test for -tt +#try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec') +#except TabError: pass +#else: raise TestFailed + r(SystemError) print '(hard to reproduce)' |