We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5850063 commit 3abb3eaCopy full SHA for 3abb3ea
tests/pdfkit-tests.py
@@ -300,7 +300,7 @@ def test_raise_error_if_bad_wkhtmltopdf_option(self):
300
r.to_pdf()
301
302
raised_exception = cm.exception
303
- self.assertRegexpMatches(raised_exception.message, '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\n')
+ self.assertRegexpMatches(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\n')
304
305
if __name__ == "__main__":
306
unittest.main()
0 commit comments