Ask Your Question

Revision history [back]

One option is to add a "random" tag.

Then, when testing, the value of the output will be ignored.

Running the test will only test whether an exception is raised.

EXAMPLES::

    sage: give_me_the_time_taken_to_process(input_data)  # random
    0.03s

One option is to add a "random" tag.

Then, when testing, the value of the output will be ignored.

Running the test will only test whether an exception is raised.

EXAMPLES::

    sage: give_me_the_time_taken_to_process(input_data)  # random
    0.03s

See the developer manual, chapter "Coding basics", section "Special markup to influence doctests":