| 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":
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.