1 | initial version |
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
2 | No.2 Revision |
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":