File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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:
3838 with tempfile .TemporaryDirectory () as _tmpdir :
3939 tmpdir = Path (_tmpdir )
4040 (tmpdir / ".git" ).touch ()
41- with contextlib . chdir (tmpdir ):
41+ with chdir (tmpdir ):
4242 result = _find_config_file ()
4343 assert result is None
4444
@@ -86,7 +86,7 @@ def test_precedence_basic(self) -> None:
8686 write_config (mypy_ini )
8787 write_config (dot_mypy )
8888
89- with contextlib . chdir (tmpdir ):
89+ with chdir (tmpdir ):
9090 result = _find_config_file ()
9191 assert result is not None
9292 assert result [2 ] == "mypy.ini"
@@ -118,7 +118,7 @@ def test_precedence_missing_section(self) -> None:
118118 write_config (parent_mypy )
119119 write_config (child_pyproject , content = "" )
120120
121- with contextlib . chdir (child ):
121+ with chdir (child ):
122122 result = _find_config_file ()
123123 assert result is not None
124124 assert Path (result [2 ]).resolve () == parent_mypy .resolve ()
You can’t perform that action at this time.
0 commit comments