numpy.testing.decorators.knownfailureif(fail_condition, msg=None)
[source]
Make function raise KnownFailureException exception if given condition is true.
If the condition is a callable, it is used at runtime to dynamically make the decision. This is useful for tests that may require costly imports, to delay the cost until the test suite is actually executed.
Parameters: |
|
---|---|
Returns: |
|
The decorator itself is decorated with the nose.tools.make_decorator
function in order to transmit function name, and various other metadata.
© 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.knownfailureif.html