浏览代码

Clarified assertRaisesMessage() behavior with respect to the message.

Tim Graham 9 年之前
父节点
当前提交
6bb4f07372
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/testing/tools.txt

+ 1 - 1
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.