Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ class instance count from object:
1

as expected you can't assign new value to read only property
>>> x1.value_r = 2
>>> x1.value_r = 2 # doctest: +ELLIPSIS
Traceback (most recent call last):
File "properties.py", line 49, in ?
x1.value_r = 2
AttributeError: can't set attribute
...
AttributeError: ...

setting value_rw to 2. value_direct:
>>> x1.value_rw = 2
Expand Down
Loading