Skip to content

Commit

Permalink
fix re matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Oct 6, 2023
1 parent 6a24b5a commit cc3d8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_final_size(image_globs, w, h):
print(outputs)
for line in outputs.split('\n'):
if 'Final Image Size' in line:
m = re.match(rb'.*\(([0-9]+), ([0-9]+)\)', line)
m = re.match(r'.*\(([0-9]+), ([0-9]+)\)', line)
ww, hh = map(int, m.group(1, 2))
if good_size(ww, w) and good_size(hh, h):
return
Expand Down

0 comments on commit cc3d8e8

Please sign in to comment.