Merge pull request #3 from MauGx3/copilot/fix-8017745e-5c3a-4e19-b9d7-4720fa4d4ca5

Fix ResourceWarning for unclosed files in test suite
This commit is contained in:
Maurício Gioachini 2025-09-06 21:49:42 -03:00 committed by GitHub
commit 4601d175d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,8 @@ def check_paths(paths: Iterable[Path]):
if is_binary(str(path)):
continue
for line in path.open():
with path.open() as file:
for line in file:
match = RE_OBJ.search(line)
assert match is None, f"cookiecutter variable not replaced in {path}"