# tf.compat.v1.test.get_temp_dir

<br />

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

Returns a temporary directory for use during tests.

    tf.compat.v1.test.get_temp_dir()

There is no need to delete the directory after the test.

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The temporary directory. ||

<br />