third_party.pylibs.pylint.src/test/input/func_noerror_super_protected.py
2013-01-08 18:35:22 +01:00

23 lines
361 B
Python

"""Accessing a protected method through super() is ok."""
# pylint: disable=missing-docstring,too-few-public-methods
__revision__ = None
class Alpha(object):
_secret = 2
def test(self):
print "test %s" % self
class Beta(Alpha):
def test(self):
print super(Beta, self)._secret
super(Beta, self).test()
Beta().test()