Skip to content

Commit

Permalink
tests/test_font.py: address problem with test_2608() on Github Window…
Browse files Browse the repository at this point in the history
…s machines.
  • Loading branch information
julian-smith-artifex-com committed Oct 25, 2023
1 parent c0d007f commit c5860c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ def test_2608():
f.write(text.encode('utf8'))
with open(os.path.abspath(f'{__file__}/../resources/test_2608_expected'), 'rb') as f:
expected = f.read().decode('utf8')
# Github windows x32 seems to insert \r characters; maybe something to
# do with the Python installation's line endings settings.
expected = expected.replace('\r', '')
print(f'test_2608(): {text.encode("utf8")=}')
print(f'test_2608(): {expected.encode("utf8")=}')
assert text == expected

0 comments on commit c5860c4

Please sign in to comment.