mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 04:22:16 +00:00
fix(test.properties): use doctest.ELLIPSIS for traceback
Since python 3.11 (PEP 657) traceback info is changed fix #460
This commit is contained in:
committed by
Stefan Seefeld
parent
16627261f1
commit
aa458d2ca9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user