Skip to content

Commit

Permalink
acc: Support multiline patterns in diff.py (#2384)
Browse files Browse the repository at this point in the history
## Changes
Fix diff.py to apply replacements that have newlines in them.

## Tests
Existing tests.
  • Loading branch information
denik authored Feb 26, 2025
1 parent 03f2ff5 commit 6d27c7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acceptance/bin/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def main():
elif f not in set1:
print(f"Only in {d2}: {f}")
else:
a = [replaceAll(patterns, x) for x in p1.read_text().splitlines(True)]
b = [replaceAll(patterns, x) for x in p2.read_text().splitlines(True)]
a = replaceAll(patterns, p1.read_text()).splitlines(True)
b = replaceAll(patterns, p2.read_text()).splitlines(True)
if a != b:
p1_str = p1.as_posix()
p2_str = p2.as_posix()
Expand Down

0 comments on commit 6d27c7e

Please sign in to comment.