Skip to content
Snippets Groups Projects
Commit a298b795 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

added a usefull warning

parent c46bcad1
No related branches found
No related tags found
5 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1
......@@ -259,7 +259,7 @@ doctest flags that can mitigate frustration:
>>> 'abcdefg' #doctest:+ELLIPSIS
'a...b'
#. SKIP skips the chek all together. (usually used, if display is demanded, but testing would somehow be unstable, due to random/unpredictable components)
#. SKIP skips the check (and execution of the line) all together. (usually used, if display is demanded, but testing would somehow be unstable, due to random/unpredictable components)
.. code-block:: rest
......@@ -267,6 +267,10 @@ doctest flags that can mitigate frustration:
CPU times: user 5 µs, sys: 3 µs, total: 8 µs
Wall time: 13.8 µs
.. caution::
Skipped lines are NOT tested! The execution of the line is skipped all together with the check against the
expected output.
To assign a group to doctest snippets, use the more verbose `doctest` directive:
.. code-block:: rest
......@@ -277,7 +281,7 @@ To assign a group to doctest snippets, use the more verbose `doctest` directive:
CPU times: user 5 µs, sys: 3 µs, total: 8 µs
Wall time: 13.8 µs
Will ber rendered, as:
Will be rendered, as:
.. doctest:: group1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment