summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-07-30 18:28:26 -0400
committerTim Graham <timograham@gmail.com>2015-07-31 09:20:00 -0400
commitf5f03e3de9b7050fb5dd33d12b93226c99cc2f4b (patch)
tree6cbe4edcde7e38b553691637b19712c9b11e6319
parent386a6dc3d76fe01df1929503b00755bfce987b32 (diff)
[1.8.x] Clarified assertRaisesMessage() behavior with respect to the message.
Backport of 6bb4f07372fe748a701ad38e5c0d1182dab9e2c8 from master
-rw-r--r--docs/topics/testing/tools.txt2
1 files changed, 1 insertions, 1 deletions
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.