File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ repos:
101
101
types : [python]
102
102
- id : py-path-deprecated
103
103
name : py.path usage is deprecated
104
- exclude : docs|src/_pytest/deprecated.py|testing/deprecated_test.py
104
+ exclude : docs|src/_pytest/deprecated.py|testing/deprecated_test.py|src/_pytest/legacypath.py
105
105
language : pygrep
106
106
entry : \bpy\.path\.local
107
107
types : [python]
Original file line number Diff line number Diff line change @@ -270,8 +270,8 @@ def testdir(pytester: Pytester) -> Testdir:
270
270
@final
271
271
@attr .s (init = False , auto_attribs = True )
272
272
class TempdirFactory :
273
- """Backward compatibility wrapper that implements :class:``_pytest.compat.LEGACY_PATH` `
274
- for :class:`` TempPathFactory` `."""
273
+ """Backward compatibility wrapper that implements :class:`py.path.local `
274
+ for :class:`TempPathFactory`."""
275
275
276
276
_tmppath_factory : TempPathFactory
277
277
@@ -282,11 +282,11 @@ def __init__(
282
282
self ._tmppath_factory = tmppath_factory
283
283
284
284
def mktemp (self , basename : str , numbered : bool = True ) -> LEGACY_PATH :
285
- """Same as :meth:`TempPathFactory.mktemp`, but returns a ``_pytest.compat.LEGACY_PATH` ` object."""
285
+ """Same as :meth:`TempPathFactory.mktemp`, but returns a :class:`py.path.local ` object."""
286
286
return legacy_path (self ._tmppath_factory .mktemp (basename , numbered ).resolve ())
287
287
288
288
def getbasetemp (self ) -> LEGACY_PATH :
289
- """Backward compat wrapper for ``_tmppath_factory .getbasetemp`` ."""
289
+ """Same as :meth:`TempPathFactory .getbasetemp`, but returns a :class:`py.path.local` object ."""
290
290
return legacy_path (self ._tmppath_factory .getbasetemp ().resolve ())
291
291
292
292
You can’t perform that action at this time.
0 commit comments