From 732764bd84f992f98da84a86edaa293dd02fbfe8 Mon Sep 17 00:00:00 2001 From: Daniel Danis Date: Mon, 1 Jul 2024 12:50:37 +0200 Subject: [PATCH] The exception message differs across Python versions. However, we do not care as long as we get the expected exception type. --- docs/python.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/python.rst b/docs/python.rst index a54316f..0b0b8ce 100644 --- a/docs/python.rst +++ b/docs/python.rst @@ -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.