File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,8 @@ class Testdir:
527
527
528
528
"""
529
529
530
+ __test__ = False
531
+
530
532
CLOSE_STDIN = object
531
533
532
534
class TimeoutExpired (Exception ):
Original file line number Diff line number Diff line change 16
16
from _pytest .pytester import LineMatcher
17
17
from _pytest .pytester import SysModulesSnapshot
18
18
from _pytest .pytester import SysPathsSnapshot
19
+ from _pytest .pytester import Testdir
19
20
20
21
21
22
def test_make_hook_recorder (testdir ) -> None :
@@ -273,7 +274,8 @@ def test_assert_outcomes_after_pytest_error(testdir) -> None:
273
274
result .assert_outcomes (passed = 0 )
274
275
275
276
276
- def test_cwd_snapshot (tmpdir ) -> None :
277
+ def test_cwd_snapshot (testdir : Testdir ) -> None :
278
+ tmpdir = testdir .tmpdir
277
279
foo = tmpdir .ensure ("foo" , dir = 1 )
278
280
bar = tmpdir .ensure ("bar" , dir = 1 )
279
281
foo .chdir ()
You can’t perform that action at this time.
0 commit comments