mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Descriptor tests fixup (1/3)
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| 6 | Property f | 7 | Function f | 11 | Function f |
|
||||
| 3 | Property f | 4 | Function f | 8 | Function f |
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user