Python: Descriptor tests fixup (1/3)

This commit is contained in:
Rasmus Wriedt Larsen
2020-02-12 14:45:15 +01:00
parent 13568b7b9f
commit 3f49aeecfe
3 changed files with 9 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
| 16 | classmethod() | 17 | Function c1 |
| 23 | classmethod() | 20 | Function c2 |
| 24 | classmethod() | 20 | Function c2 |
| 26 | staticmethod() | 27 | Function s1 |
| 33 | staticmethod() | 30 | Function s2 |
| 34 | staticmethod() | 30 | Function s2 |
| 13 | classmethod() | 14 | Function c1 |
| 20 | classmethod() | 17 | Function c2 |
| 21 | classmethod() | 17 | Function c2 |
| 23 | staticmethod() | 24 | Function s1 |
| 30 | staticmethod() | 27 | Function s2 |
| 31 | staticmethod() | 27 | Function s2 |

View File

@@ -1 +1 @@
| 6 | Property f | 7 | Function f | 11 | Function f |
| 3 | Property f | 4 | Function f | 8 | Function f |

View File

@@ -1,6 +1,3 @@
class C(object):
@property
@@ -8,8 +5,8 @@ class C(object):
return self._f
@f.setter
def f(self):
return self._f
def f(self, value):
self._f = value
class D(object):