Skip to content

Commit

Permalink
Fixup file lines counting
Browse files Browse the repository at this point in the history
  • Loading branch information
elchupanebrej committed Oct 29, 2024
1 parent 70d5877 commit b04c485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def copy_path(request, testdir: "Testdir", initial_path, final_path, step):
)
def _(file_path: Path, line_count: int):
with file_path.open("r") as fp:
real_line_count = reduce(lambda _, last: last, map(itemgetter(0), enumerate(fp, start=1)))
real_line_count = reduce(lambda _, last: last, map(itemgetter(0), enumerate(fp, start=1)), 0) # type: ignore[no-any-return]
assert line_count == real_line_count


Expand Down

0 comments on commit b04c485

Please sign in to comment.