mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-20 10:52:34 +03:00
Revert "Fix ResourceWarning for unclosed files in test_cookiecutter_generation.py"
This reverts commit decfd22cb7
.
This commit is contained in:
parent
4601d175d8
commit
4676345edd
|
@ -168,8 +168,7 @@ def check_paths(paths: Iterable[Path]):
|
||||||
if is_binary(str(path)):
|
if is_binary(str(path)):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
with path.open() as file:
|
for line in path.open():
|
||||||
for line in file:
|
|
||||||
match = RE_OBJ.search(line)
|
match = RE_OBJ.search(line)
|
||||||
assert match is None, f"cookiecutter variable not replaced in {path}"
|
assert match is None, f"cookiecutter variable not replaced in {path}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user