File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1842,17 +1842,21 @@ msgid ""
18421842"of the standard failure message. When set to ``False``, the custom message "
18431843"replaces the standard message."
18441844msgstr ""
1845+ "这个类属性决定当将一个自定义失败消息作为 msg 参数传给一个失败的 assertXYY 调用时会发生什么。默认值为 ``True``。 "
1846+ "在此情况下,自定义消息会被添加到标准失败消息的末尾。 当设为 ``False`` 时,自定义消息会替换标准消息。"
18451847
18461848#: ../../library/unittest.rst:1391
18471849msgid ""
18481850"The class setting can be overridden in individual test methods by assigning "
18491851"an instance attribute, self.longMessage, to ``True`` or ``False`` before "
18501852"calling the assert methods."
18511853msgstr ""
1854+ "类设置可以通过在调用断言方法之前将一个实例属性 self.longMessage 赋值为 ``True`` 或 ``False`` "
1855+ "在单个测试方法中进行重载。"
18521856
18531857#: ../../library/unittest.rst:1395
18541858msgid "The class setting gets reset before each test call."
1855- msgstr ""
1859+ msgstr "类设置会在每个测试调用之前被重置。 "
18561860
18571861#: ../../library/unittest.rst:1402
18581862msgid ""
You can’t perform that action at this time.
0 commit comments