A function where we ignore the output of ALL examples. Examples: # all-random This mark tells the testing machinery that all subsequent examples should be treated as random (ignoring their output). They are still executed, so if a they raise an error, it will be detec
()
| 103 | |
| 104 | |
| 105 | def random_all(): |
| 106 | """A function where we ignore the output of ALL examples. |
| 107 | |
| 108 | Examples: |
| 109 | |
| 110 | # all-random |
| 111 | |
| 112 | This mark tells the testing machinery that all subsequent examples should |
| 113 | be treated as random (ignoring their output). They are still executed, |
| 114 | so if a they raise an error, it will be detected as such, but their |
| 115 | output is completely ignored. |
| 116 | |
| 117 | >>> 1+3 |
| 118 | junk goes here... |
| 119 | |
| 120 | >>> 1+3 |
| 121 | klasdfj; |
| 122 | |
| 123 | >>> 1+2 |
| 124 | again, anything goes |
| 125 | blah... |
| 126 | """ |
| 127 | pass |
| 128 | |
| 129 | def iprand(): |
| 130 | """Some ipython tests with random output. |
nothing calls this directly
no outgoing calls
no test coverage detected