summaryrefslogtreecommitdiff
path: root/tests/functional/p
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-07 22:20:00 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-07 22:59:36 +0100
commitf84bf0220812a987595f719acad0be6e8cf0f982 (patch)
treea7c96e0322a8b38af55b34e57e33105528b61fb8 /tests/functional/p
parent48d366855759b612cc883409997ba161afe09095 (diff)
downloadpylint-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.py24
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'