diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:20:00 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 22:59:36 +0100 |
commit | f84bf0220812a987595f719acad0be6e8cf0f982 (patch) | |
tree | a7c96e0322a8b38af55b34e57e33105528b61fb8 /tests/functional/p | |
parent | 48d366855759b612cc883409997ba161afe09095 (diff) | |
download | pylint-git-f84bf0220812a987595f719acad0be6e8cf0f982.tar.gz |
Migrate all func_noerror_* to new functional tests
Diffstat (limited to 'tests/functional/p')
-rw-r--r-- | tests/functional/p/property_affectation_py26.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/functional/p/property_affectation_py26.py b/tests/functional/p/property_affectation_py26.py new file mode 100644 index 000000000..60118bbf6 --- /dev/null +++ b/tests/functional/p/property_affectation_py26.py @@ -0,0 +1,24 @@ +# pylint: disable=R0903, useless-object-inheritance +""" +Simple test case for an annoying behavior in pylint. +""" + +__revision__ = 'pouet' + +class Test(object): + """Smallest test case for reported issue.""" + + def __init__(self): + self._thing = None + + @property + def myattr(self): + """Getter for myattr""" + return self._thing + + @myattr.setter + def myattr(self, value): + """Setter for myattr.""" + self._thing = value + +Test().myattr = 'grou' |