Identical to :fixture:`pytester`, and provides an instance whose methods return legacy ``LEGACY_PATH`` objects instead when applicable. New code should avoid using :fixture:`testdir` in favor of :fixture:`pytester`.
(pytester: Pytester)
| 258 | @staticmethod |
| 259 | @fixture |
| 260 | def testdir(pytester: Pytester) -> Testdir: |
| 261 | """ |
| 262 | Identical to :fixture:`pytester`, and provides an instance whose methods return |
| 263 | legacy ``LEGACY_PATH`` objects instead when applicable. |
| 264 | |
| 265 | New code should avoid using :fixture:`testdir` in favor of :fixture:`pytester`. |
| 266 | """ |
| 267 | return Testdir(pytester, _ispytest=True) |
| 268 | |
| 269 | |
| 270 | @final |