summaryrefslogtreecommitdiff
path: root/docs/topics/testing
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:31:14 -0500
commitc0d8d5f98c7f3484a254bbefbb4527aa0c6791d2 (patch)
tree40097794356523996b6a6420080d0d62b4985aeb /docs/topics/testing
parent3f04850f82826ce8d502ec0a2bb14d8fe16517c2 (diff)
[1.9.x] Fixed #25948 -- Added guidelines for SimpleTestCase.assertRaisesMessage() usage.
Backport of 77f50c9cfc8b33bf86394816cde183e656ba28cd from master
Diffstat (limited to 'docs/topics/testing')
-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 b1388cbdcf..3572b31b95 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1391,9 +1391,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