summaryrefslogtreecommitdiff
path: root/tests/functional/r
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-12-15 11:19:22 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-12-15 11:19:22 +0200
commitce82018b8618072bf347c78d243678a4583cc05f (patch)
treeabbcb8636fd6855b3223156147cbdd6f58a732be /tests/functional/r
parent1e84b02c9eedf051db556df8e4966800a8c6d841 (diff)
downloadpylint-git-ce82018b8618072bf347c78d243678a4583cc05f.tar.gz
Add regression test for property no-member error
Close #3269
Diffstat (limited to 'tests/functional/r')
-rw-r--r--tests/functional/r/regression_property_no_member_3269.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/functional/r/regression_property_no_member_3269.py b/tests/functional/r/regression_property_no_member_3269.py
new file mode 100644
index 000000000..784dd90d4
--- /dev/null
+++ b/tests/functional/r/regression_property_no_member_3269.py
@@ -0,0 +1,23 @@
+"""Calling a super property"""
+# pylint: disable=too-few-public-methods,invalid-name
+
+class A:
+ """A parent class"""
+
+ @property
+ def test(self):
+ """A property"""
+ return "test"
+
+
+class B:
+ """A child class"""
+
+ @property
+ def test(self):
+ """Overriding implementation of prop which calls the parent"""
+ return A.test.fget(self) + " overriden"
+
+
+if __name__ == "__main__":
+ print(B().test)