
"""
this test check by Python 2.7.6 (ubuntu 14.04)

Python try...except...else...finally.  information. For example,

>>> try:
...     a = 1 / 0
... except Exception, e:
...     print 'oops: %s' % e
... else:
...     print 'no problem here'
... finally:
...     print 'done'
...
oops: integer division or modulo by zero
done

>>> try:
...     raise SyntaxError
... except ValueError:
...     print 'value error'
... except SyntaxError:
...     print 'syntax error'
... 
syntax error
>>> 
"""

if __name__ == "__main__":
    import doctest
    doctest.testmod()


7c3ed5bf9ddaba2ddfde2b7b138748466de95591
<mask token>

<mask token>
if __name__ == '__main__':
    import doctest
    doctest.testmod()


"""
this test check by Python 2.7.6 (ubuntu 14.04)

Python try...except...else...finally.  information. For example,

>>> try:
...     a = 1 / 0
... except Exception, e:
...     print 'oops: %s' % e
... else:
...     print 'no problem here'
... finally:
...     print 'done'
...
oops: integer division or modulo by zero
done

>>> try:
...     raise SyntaxError
... except ValueError:
...     print 'value error'
... except SyntaxError:
...     print 'syntax error'
... 
syntax error
>>> 
"""

if __name__ == "__main__":
    import doctest
    doctest.testmod()

