Skip to content

Commit 3abb3ea

Browse files
author
Rory McCann
committed
Make tests work with python3
1 parent 5850063 commit 3abb3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pdfkit-tests.py

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

302302
raised_exception = cm.exception
303-
self.assertRegexpMatches(raised_exception.message, '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\n')
303+
self.assertRegexpMatches(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\n')
304304

305305
if __name__ == "__main__":
306306
unittest.main()

0 commit comments

Comments
 (0)