Skip to content

Commit 738bd32

Browse files
committed
fix broken tests for latest wkhtmltopdf version
1 parent 1b96ee6 commit 738bd32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/fixtures/example2.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a { color: blue; }
1+
a { color: blue; }

tests/pdfkit-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def test_raise_error_if_bad_wkhtmltopdf_option(self):
327327
r.to_pdf()
328328

329329
raised_exception = cm.exception
330-
self.assertRegexpMatches(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\n')
330+
self.assertRegexpMatches(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\r?\n')
331331

332332
if __name__ == "__main__":
333333
unittest.main()

0 commit comments

Comments
 (0)