File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def test_no_config(self) -> None:
38
38
with tempfile .TemporaryDirectory () as _tmpdir :
39
39
tmpdir = Path (_tmpdir )
40
40
(tmpdir / ".git" ).touch ()
41
- with contextlib . chdir (tmpdir ):
41
+ with chdir (tmpdir ):
42
42
result = _find_config_file ()
43
43
assert result is None
44
44
@@ -86,7 +86,7 @@ def test_precedence_basic(self) -> None:
86
86
write_config (mypy_ini )
87
87
write_config (dot_mypy )
88
88
89
- with contextlib . chdir (tmpdir ):
89
+ with chdir (tmpdir ):
90
90
result = _find_config_file ()
91
91
assert result is not None
92
92
assert result [2 ] == "mypy.ini"
@@ -118,7 +118,7 @@ def test_precedence_missing_section(self) -> None:
118
118
write_config (parent_mypy )
119
119
write_config (child_pyproject , content = "" )
120
120
121
- with contextlib . chdir (child ):
121
+ with chdir (child ):
122
122
result = _find_config_file ()
123
123
assert result is not None
124
124
assert Path (result [2 ]).resolve () == parent_mypy .resolve ()
You can’t perform that action at this time.
0 commit comments