Skip to content

Commit 4676345

Browse files
committed
Revert "Fix ResourceWarning for unclosed files in test_cookiecutter_generation.py"
This reverts commit decfd22.
1 parent 4601d17 commit 4676345

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_cookiecutter_generation.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,9 @@ def check_paths(paths: Iterable[Path]):
168168
if is_binary(str(path)):
169169
continue
170170

171-
with path.open() as file:
172-
for line in file:
173-
match = RE_OBJ.search(line)
174-
assert match is None, f"cookiecutter variable not replaced in {path}"
171+
for line in path.open():
172+
match = RE_OBJ.search(line)
173+
assert match is None, f"cookiecutter variable not replaced in {path}"
175174

176175

177176
@pytest.mark.parametrize("context_override", SUPPORTED_COMBINATIONS, ids=_fixture_id)

0 commit comments

Comments
 (0)