Skip to content

Commit

Permalink
fixed edge test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Aug 5, 2024
1 parent 2b2f625 commit 5b7f26d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/test_duckdb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,19 @@ def test_edges_merge(self):
"Number of lines in output and expected files do not match",
)

for i, (output_line, expected_line) in enumerate(
zip(output_lines, expected_lines, strict=False)
):
# ! Commented block below because GH Action py3.9 complains about strict=False
# ! E TypeError: zip() takes no keyword arguments
# for i, (output_line, expected_line) in enumerate(
# zip(output_lines, expected_lines, strict=False)
# ):
# self.assertEqual(
# output_line.strip(), expected_line.strip(), f"Mismatch at line {i+1}"
# )
# Check if the lengths of the iterables match
if len(output_lines) != len(expected_lines):
raise ValueError("Iterables have different lengths")

for i, (output_line, expected_line) in enumerate(zip(output_lines, expected_lines, strict=False)):
self.assertEqual(
output_line.strip(), expected_line.strip(), f"Mismatch at line {i+1}"
)

0 comments on commit 5b7f26d

Please sign in to comment.