Skip to content

Commit 0923b63

Browse files
authored
Merge pull request JazzCore#89 from nuno-andre/patch-1
assertRegexpMatches deprecated
2 parents 8879d7f + ba3722c commit 0923b63

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)