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:19:27 -0400
commit6bb4f07372fe748a701ad38e5c0d1182dab9e2c8 (patch)
treefb12dc9ce71b53509a4db5faa1c72805885360f3
parent1c7c782d6e7cdce09a982f05d468d538698c3004 (diff)
Clarified assertRaisesMessage() behavior with respect to the message.
-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 27db72daa1..1fcb401f20 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1352,7 +1352,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.