Skip to content

Commit 8889264

Browse files
committed
change tests for compatibility on Windows platform
1 parent 9161735 commit 8889264

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@ def test_main_head_request(capsys):
270270
# which makes tests fail on different remote CI testing services
271271
for x, line in enumerate(res_string_list):
272272
# treat top two lines of the diff as comparison of first 10 chars only
273-
if x in (0, 1):
274-
assert "tests/testfiles/Roboto-Regular.subset" in line
273+
if x == 0:
274+
assert line.startswith("---")
275+
elif x == 1:
276+
assert line.startswith("+++")
275277
elif x == 2:
276278
assert line == "@@ -4,34 +4,34 @@"
277279
elif x == 3:

0 commit comments

Comments
 (0)