summaryrefslogtreecommitdiff
path: root/test/input/func_noerror_super_protected.py
blob: 5e78eea09cdf364cd020bcd167bb0ce164e45cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""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()