Skip to content

Commit 58f389b

Browse files
committed
.
1 parent c694ea6 commit 58f389b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

mypy/test/test_config_parser.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,17 @@ def test_parent_config_with_and_without_git(self) -> None:
5858
assert result is not None
5959
assert Path(result[2]).resolve() == config.resolve()
6060

61-
(child / ".git").touch()
61+
git = child / ".git"
62+
git.touch()
63+
64+
result = _find_config_file()
65+
assert result is None
66+
67+
git.unlink()
68+
result = _find_config_file()
69+
assert result is not None
70+
hg = child / ".hg"
71+
hg.touch()
6272

6373
result = _find_config_file()
6474
assert result is None

0 commit comments

Comments
 (0)