From 58f389bdcd33d819127de69365aa46a30a3474b7 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Fri, 17 Jan 2025 20:57:31 -0800 Subject: [PATCH] . --- mypy/test/test_config_parser.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mypy/test/test_config_parser.py b/mypy/test/test_config_parser.py index b670e905fbe56..6e5b1028f3b67 100644 --- a/mypy/test/test_config_parser.py +++ b/mypy/test/test_config_parser.py @@ -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