We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8879d7f + ba3722c commit 0923b63Copy full SHA for 0923b63
tests/pdfkit-tests.py
@@ -402,7 +402,7 @@ def test_raise_error_if_bad_wkhtmltopdf_option(self):
402
r.to_pdf()
403
404
raised_exception = cm.exception
405
- self.assertRegexpMatches(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\r?\n')
+ self.assertRegex(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\r?\n')
406
407
if __name__ == "__main__":
408
unittest.main()
0 commit comments