mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 00:24:37 +00:00
36 lines
573 B
Python
36 lines
573 B
Python
|
# pylint: disable-msg=C0103
|
||
|
"""test pb with exceptions and old/new style classes"""
|
||
|
|
||
|
__revision__ = 1
|
||
|
|
||
|
class OkException(Exception):
|
||
|
"""bien bien bien"""
|
||
|
|
||
|
class BofException:
|
||
|
"""mouais"""
|
||
|
|
||
|
class NewException(object):
|
||
|
"""non !"""
|
||
|
|
||
|
def fonctionOk():
|
||
|
"""raise"""
|
||
|
raise OkException('hop')
|
||
|
|
||
|
def fonctionBof():
|
||
|
"""raise"""
|
||
|
raise BofException('hop')
|
||
|
|
||
|
def fonctionNew():
|
||
|
"""raise"""
|
||
|
raise NewException()
|
||
|
|
||
|
def fonctionBof2():
|
||
|
"""raise"""
|
||
|
raise BofException, 'hop'
|
||
|
|
||
|
def fonctionNew2():
|
||
|
"""raise"""
|
||
|
raise NewException
|
||
|
|
||
|
|