2
0
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:
Eisuke Kawashima
2025-03-31 19:54:55 +09:00
committed by Stefan Seefeld
parent 16627261f1
commit aa458d2ca9

View File

@@ -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