<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/platform/test.py#L131-L146) |

Disables the test if pred is true.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.test.disable_with_predicate`](https://www.tensorflow.org/api_docs/python/tf/test/disable_with_predicate)

<br />

    tf.test.disable_with_predicate(
        pred, skip_message
    )