diff options
Diffstat (limited to 'tests/functional/o/object_as_class_attribute.py')
-rw-r--r-- | tests/functional/o/object_as_class_attribute.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/o/object_as_class_attribute.py b/tests/functional/o/object_as_class_attribute.py new file mode 100644 index 000000000..71cd027b7 --- /dev/null +++ b/tests/functional/o/object_as_class_attribute.py @@ -0,0 +1,18 @@ +# pylint: disable=R0903, 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 |