Skip to content

Commit ba3722c

Browse files
authored
assertRegexpMatches deprecated
../tests/pdfkit-tests.py:408: DeprecationWarning: Please use assertRegex instead.
1 parent 8879d7f commit ba3722c

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
@@ -402,7 +402,7 @@ def test_raise_error_if_bad_wkhtmltopdf_option(self):
402402
r.to_pdf()
403403

404404
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')
405+
self.assertRegex(str(raised_exception), '^wkhtmltopdf exited with non-zero code 1. error:\nUnknown long argument --bad-option\r?\n')
406406

407407
if __name__ == "__main__":
408408
unittest.main()

0 commit comments

Comments
 (0)