File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ def constructor(request):
43
43
44
44
class TestPandasDelegate :
45
45
class Delegator :
46
- _properties = ["foo " ]
46
+ _properties = ["prop " ]
47
47
_methods = ["bar" ]
48
48
49
- def _set_value (self , value ):
50
- self .value = value
49
+ def _set_prop (self , value ):
50
+ self .prop = value
51
51
52
- def _get_value (self ):
53
- return self .value
52
+ def _get_prop (self ):
53
+ return self .prop
54
54
55
- value = property (_get_value , _set_value , doc = "foo property" )
55
+ value = property (_get_prop , _set_prop , doc = "foo property" )
56
56
57
57
def test_method (self , * args , ** kwargs ):
58
58
"""a test bar method"""
@@ -80,15 +80,15 @@ def test_invalid_delegation(self):
80
80
81
81
msg = "You cannot access the property foo"
82
82
with pytest .raises (TypeError , match = msg ):
83
- delegate .foox
83
+ delegate .prop
84
84
85
85
msg = "The property foo cannot be set"
86
86
with pytest .raises (TypeError , match = msg ):
87
- delegate .foox = 5
87
+ delegate .prop = 5
88
88
89
89
msg = "You cannot access the property foo"
90
90
with pytest .raises (TypeError , match = msg ):
91
- delegate .foox ()
91
+ delegate .prop ()
92
92
93
93
@pytest .mark .skipif (PYPY , reason = "not relevant for PyPy" )
94
94
def test_memory_usage (self ):
You can’t perform that action at this time.
0 commit comments