<s> N = int ( <NUM_LIT:2> ** <NUM_LIT> - <NUM_LIT:1> ) <EOL> class MyException ( Exception ) : <EOL> pass <EOL> class MyException1 ( Exception ) : <EOL> pass <EOL> class MyException2 ( Exception ) : <EOL> pass <EOL> class MyException3 ( Exception ) : <EOL> pass <EOL> def test_try_except ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> while c < n : <EOL> try : <EOL> pass <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_try_except_else ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> while c < n : <EOL> try : <EOL> pass <EOL> except : <EOL> pass <EOL> else : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_try_except_finally ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> while c < n : <EOL> try : <EOL> pass <EOL> finally : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_instantiate_builtin_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> while c < n : <EOL> IndexError ( ) <EOL> IndexError ( ) <EOL> IndexError ( ) <EOL> IndexError ( ) <EOL> IndexError ( ) <EOL> c += <NUM_LIT:1> <EOL> def test_instantiate_user_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> while c < n : <EOL> MyException ( ) <EOL> MyException ( ) <EOL> MyException ( ) <EOL> MyException ( ) <EOL> MyException ( ) <EOL> c += <NUM_LIT:1> <EOL> def test_raise_builtin_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = IndexError ( ) <EOL> while c < n : <EOL> try : <EOL> raise e <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_raise_user_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = MyException ( ) <EOL> while c < n : <EOL> try : <EOL> raise e <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_except_specific_builtin_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = IndexError ( ) <EOL> while c < n : <EOL> try : <EOL> raise e <EOL> except ValueError : <EOL> pass <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_except_multiple_builtin_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = IndexError ( ) <EOL> while c < n : <EOL> try : <EOL> raise e <EOL> except ( ValueError , OverflowError , ZeroDivisionError ) : <EOL> pass <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_except_specific_user_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = MyException ( ) <EOL> while c < n : <EOL> try : <EOL> raise e <EOL> except MyException1 : <EOL> pass <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_except_multiple_user_exception ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = MyException ( ) <EOL> while c < n : <EOL> try : <EOL> raise e <EOL> except ( MyException1 , MyException2 , MyException3 ) : <EOL> pass <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> <EOL> def test_reraise ( ) : <EOL> c = <NUM_LIT:0> <EOL> n = N <EOL> e = IndexError ( ) <EOL> while c < n : <EOL> try : <EOL> try : <EOL> raise e <EOL> except : <EOL> raise <EOL> except : <EOL> pass <EOL> c += <NUM_LIT:1> </s>
