numpy.testing.decorators.setastest(tf=True)
[source]
Signals to nose that this function is or is not a test.
Parameters: |
|
---|
This decorator can’t use the nose namespace, because it can be called from a non-test module. See also istest
and nottest
in nose.tools
.
setastest
can be used in the following way:
from numpy.testing import dec @dec.setastest(False) def func_with_test_in_name(arg1, arg2): pass
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.testing.decorators.setastest.html