summaryrefslogtreecommitdiff
path: root/tests/functional/o/object_as_class_attribute.py
blob: 2ac729b36b955ddf6413bc653f2e67037d3ef3cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# pylint: disable=too-few-public-methods,useless-object-inheritance
"""Test case for the problem described below :
 - A class extends 'object'
 - This class defines its own __init__()
   * pylint will therefore check that baseclasses' init()
     are called
 - If this class defines an 'object' attribute, then pylint
   will use this new definition when trying to retrieve
   object.__init__()
"""

__revision__ = None

class Statement(object):
    """ ... """
    def __init__(self):
        pass
    object = None