8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 350122a commit 34c7394Copy full SHA for 34c7394
doc/en/how-to/assert.rst
@@ -54,14 +54,13 @@ operators. (See :ref:`tbreportdemo`). This allows you to use the
54
idiomatic python constructs without boilerplate code while not losing
55
introspection information.
56
57
-However, if you specify a message with the assertion like this:
+If a message is specified with the assertion like this:
58
59
.. code-block:: python
60
61
assert a % 2 == 0, "value was odd, should be even"
62
63
-then no assertion introspection takes places at all and the message
64
-will be simply shown in the traceback.
+it is printed alongside the assertion introspection in the traceback.
65
66
See :ref:`assert-details` for more information on assertion introspection.
67
0 commit comments