MCPcopy Create free account
hub / github.com/ipython/ipython / random_all

Function random_all

IPython/testing/plugin/dtexample.py:105–127  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

103
104
105def 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
129def iprand():
130 """Some ipython tests with random output.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected