summaryrefslogtreecommitdiff
path: root/docs/topics/testing/tools.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-12-22 18:19:29 -0500
committerTim Graham <timograham@gmail.com>2015-12-23 07:29:06 -0500
commit77f50c9cfc8b33bf86394816cde183e656ba28cd (patch)
treeafd5af052041824d2a8189dd0b623f0e5a71ae74 /docs/topics/testing/tools.txt
parent0224f1cb042cc14545369b230cf7036af6c296ab (diff)
Fixed #25948 -- Added guidelines for SimpleTestCase.assertRaisesMessage() usage.
Diffstat (limited to 'docs/topics/testing/tools.txt')
-rw-r--r--docs/topics/testing/tools.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 1eeb68e7d3..f9e302a0c1 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1345,9 +1345,9 @@ your test suite.
Asserts that execution of ``callable`` raises ``expected_exception`` and
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.
+ outcome is reported as a failure. It's a simpler version of
+ :meth:`unittest.TestCase.assertRaisesRegex` with the difference that
+ ``expected_message`` isn't treated as a regular expression.
If only the ``expected_exception`` and ``expected_message`` parameters are
given, returns a context manager so that the code being tested can be