summaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/p/property_with_parameters.py14
-rw-r--r--tests/functional/p/property_with_parameters.txt2
2 files changed, 15 insertions, 1 deletions
diff --git a/tests/functional/p/property_with_parameters.py b/tests/functional/p/property_with_parameters.py
index 2f521991f..9f746f75f 100644
--- a/tests/functional/p/property_with_parameters.py
+++ b/tests/functional/p/property_with_parameters.py
@@ -1,7 +1,21 @@
# pylint: disable=missing-docstring, too-few-public-methods
+from abc import ABCMeta, abstractproperty
class Cls:
@property
def attribute(self, param, param1): # [property-with-parameters]
return param + param1
+
+
+class MyClassBase(metaclass=ABCMeta):
+ """MyClassBase."""
+
+ @abstractproperty
+ def example(self):
+ """Getter."""
+
+ @abstractproperty
+ @example.setter
+ def example(self, value):
+ """Setter."""
diff --git a/tests/functional/p/property_with_parameters.txt b/tests/functional/p/property_with_parameters.txt
index 325d89306..617ce3c31 100644
--- a/tests/functional/p/property_with_parameters.txt
+++ b/tests/functional/p/property_with_parameters.txt
@@ -1 +1 @@
-property-with-parameters:6:Cls.attribute:Cannot have defined parameters for properties
+property-with-parameters:7:Cls.attribute:Cannot have defined parameters for properties