Skip to content

Commit

Permalink
The exception message differs across Python versions. However, we do …
Browse files Browse the repository at this point in the history
…not care as long as we get the expected exception type.
  • Loading branch information
ielis committed Jul 1, 2024
1 parent 9cf2f7e commit 732764b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ However, setting the field values with property syntax only works for
such as `bool`, `int`, `str`, or `float`, and the assignment will *NOT* work for message fields:

>>> pf = pps2.PhenotypicFeature()
>>> pf.type = spherocytosis
>>> pf.type = spherocytosis # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: Assignment not allowed to composite field "type" in protocol message object.
Expand Down

0 comments on commit 732764b

Please sign in to comment.