third_party.pylibs.pylint.src/test/input/func_w0223.py

28 lines
582 B
Python
Raw Normal View History

2006-04-26 10:48:09 +00:00
# pylint: disable-msg=R0903,R0922
"""test overriding of abstract method
"""
__revision__ = '$Id: func_w0223.py,v 1.2 2004-09-29 08:35:13 syt Exp $'
class Abstract:
"""abstract class
"""
def aaaa(self):
"""should be overridden in concrete class"""
2006-04-26 10:48:09 +00:00
raise NotImplementedError()
def bbbb(self):
"""should be overridden in concrete class"""
2006-04-26 10:48:09 +00:00
raise NotImplementedError()
def __init__(self):
pass
class Concret(Abstract):
"""concret class"""
def aaaa(self):
"""overidden form Abstract"""
print self