Skip to content

Commit 9aacee5

Browse files
committed
fix(test.properties): use doctest.ELLIPSIS for traceback
Since python 3.11 (PEP 657) traceback info is changed fix boostorg#460
1 parent 3e7be69 commit 9aacee5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/properties.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ class instance count from object:
5656
1
5757
5858
as expected you can't assign new value to read only property
59-
>>> x1.value_r = 2
59+
>>> x1.value_r = 2 # doctest: +ELLIPSIS
6060
Traceback (most recent call last):
61-
File "properties.py", line 49, in ?
62-
x1.value_r = 2
63-
AttributeError: can't set attribute
61+
...
62+
AttributeError: ...
6463
6564
setting value_rw to 2. value_direct:
6665
>>> x1.value_rw = 2

0 commit comments

Comments
 (0)