diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 4c3b359923..98e84dedbd 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1337,7 +1337,7 @@ your test suite. SimpleTestCase.assertRaisesMessage(expected_exception, expected_message) Asserts that execution of ``callable`` raises ``expected_exception`` and - that the exception has an ``expected_message`` representation. Any other + that ``expected_message`` is found in the exception's message. Any other outcome is reported as a failure. Similar to unittest's :meth:`~unittest.TestCase.assertRaisesRegex` with the difference that ``expected_message`` isn't a regular expression.