Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jan 18, 2025
1 parent 58f389b commit cb1f686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mypy/test/test_config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_no_config(self) -> None:
with tempfile.TemporaryDirectory() as _tmpdir:
tmpdir = Path(_tmpdir)
(tmpdir / ".git").touch()
with contextlib.chdir(tmpdir):
with chdir(tmpdir):
result = _find_config_file()
assert result is None

Expand Down Expand Up @@ -86,7 +86,7 @@ def test_precedence_basic(self) -> None:
write_config(mypy_ini)
write_config(dot_mypy)

with contextlib.chdir(tmpdir):
with chdir(tmpdir):
result = _find_config_file()
assert result is not None
assert result[2] == "mypy.ini"
Expand Down Expand Up @@ -118,7 +118,7 @@ def test_precedence_missing_section(self) -> None:
write_config(parent_mypy)
write_config(child_pyproject, content="")

with contextlib.chdir(child):
with chdir(child):
result = _find_config_file()
assert result is not None
assert Path(result[2]).resolve() == parent_mypy.resolve()

0 comments on commit cb1f686

Please sign in to comment.