diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-12-15 11:19:22 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-12-15 11:19:22 +0200 |
commit | ce82018b8618072bf347c78d243678a4583cc05f (patch) | |
tree | abbcb8636fd6855b3223156147cbdd6f58a732be /tests/functional/r | |
parent | 1e84b02c9eedf051db556df8e4966800a8c6d841 (diff) | |
download | pylint-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.py | 23 |
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) |