Skip to content

Commit 92b6732

Browse files
committed
more test clean-up
1 parent 52a5dcc commit 92b6732

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pandas/tests/base/test_constructors.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ def constructor(request):
4343

4444
class TestPandasDelegate:
4545
class Delegator:
46-
_properties = ["foo"]
46+
_properties = ["prop"]
4747
_methods = ["bar"]
4848

49-
def _set_value(self, value):
50-
self.value = value
49+
def _set_prop(self, value):
50+
self.prop = value
5151

52-
def _get_value(self):
53-
return self.value
52+
def _get_prop(self):
53+
return self.prop
5454

55-
value = property(_get_value, _set_value, doc="foo property")
55+
value = property(_get_prop, _set_prop, doc="foo property")
5656

5757
def test_method(self, *args, **kwargs):
5858
"""a test bar method"""
@@ -80,15 +80,15 @@ def test_invalid_delegation(self):
8080

8181
msg = "You cannot access the property foo"
8282
with pytest.raises(TypeError, match=msg):
83-
delegate.foox
83+
delegate.prop
8484

8585
msg = "The property foo cannot be set"
8686
with pytest.raises(TypeError, match=msg):
87-
delegate.foox = 5
87+
delegate.prop = 5
8888

8989
msg = "You cannot access the property foo"
9090
with pytest.raises(TypeError, match=msg):
91-
delegate.foox()
91+
delegate.prop()
9292

9393
@pytest.mark.skipif(PYPY, reason="not relevant for PyPy")
9494
def test_memory_usage(self):

0 commit comments

Comments
 (0)