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 c694ea6 commit 58f389b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mypy/test/test_config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,17 @@ def test_parent_config_with_and_without_git(self) -> None:
assert result is not None
assert Path(result[2]).resolve() == config.resolve()

(child / ".git").touch()
git = child / ".git"
git.touch()

result = _find_config_file()
assert result is None

git.unlink()
result = _find_config_file()
assert result is not None
hg = child / ".hg"
hg.touch()

result = _find_config_file()
assert result is None
Expand Down

0 comments on commit 58f389b

Please sign in to comment.