Skip to content

Commit d2a7609

Browse files
fixup: path references
1 parent 938c0cc commit d2a7609

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/tmpdir.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def getbasetemp(self) -> Path:
129129
@final
130130
@attr.s(init=False)
131131
class TempdirFactory:
132-
"""Backward comptibility wrapper that implements :class:``legacy_path``
132+
"""Backward comptibility wrapper that implements :class:``_pytest.compat.LEGACY_PATH``
133133
for :class:``TempPathFactory``."""
134134

135135
_tmppath_factory = attr.ib(type=TempPathFactory)
@@ -141,7 +141,7 @@ def __init__(
141141
self._tmppath_factory = tmppath_factory
142142

143143
def mktemp(self, basename: str, numbered: bool = True) -> LEGACY_PATH:
144-
"""Same as :meth:`TempPathFactory.mktemp`, but returns a ``legacy_path`` object."""
144+
"""Same as :meth:`TempPathFactory.mktemp`, but returns a ``_pytest.compat.LEGACY_PATH`` object."""
145145
return legacy_path(self._tmppath_factory.mktemp(basename, numbered).resolve())
146146

147147
def getbasetemp(self) -> LEGACY_PATH:
@@ -208,7 +208,7 @@ def tmpdir(tmp_path: Path) -> LEGACY_PATH:
208208
``--basetemp`` is used then it is cleared each session. See :ref:`base
209209
temporary directory`.
210210
211-
The returned object is a `legacy path`_ object.
211+
The returned object is a `_pytest.compat.LEGACY_PATH`_ object.
212212
213213
.. _`legacy_path`: https://py.readthedocs.io/en/latest/path.html
214214
"""

0 commit comments

Comments
 (0)