bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)
Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index 0793e43..fff7a7a 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -191,6 +191,9 @@
*suffix* and *prefix* now accept and default to ``None`` to cause
an appropriate default value to be used.
+ .. versionchanged:: 3.6
+ The *dir* parameter now accepts a :term:`path-like object`.
+
.. function:: mkdtemp(suffix=None, prefix=None, dir=None)
@@ -214,6 +217,9 @@
*suffix* and *prefix* now accept and default to ``None`` to cause
an appropriate default value to be used.
+ .. versionchanged:: 3.6
+ The *dir* parameter now accepts a :term:`path-like object`.
+
.. function:: gettempdir()