File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -966,6 +966,14 @@ written.
966966 checked, as they are the most likely to be broken, now or in the future. This
967967 probably belongs to the TESTS block (see :ref: `section-docstring-function `).
968968
969+ - **Interruption: ** if the function might take a very long time, use
970+ :func: `~sage.doctest.util.ensure_interruptible_after ` to check that the user
971+ can interrupt it. For example, the following tests ``sleep(3) `` can be
972+ interrupted after 1 second::
973+
974+ sage: from sage.doctest.util import ensure_interruptible_after
975+ sage: with ensure_interruptible_after(1) as data: sleep(3)
976+
969977- **Systematic tests ** of all small-sized inputs, or tests of **random **
970978 instances if possible.
971979
You can’t perform that action at this time.
0 commit comments