Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 565b682

Browse files
[po] auto sync
1 parent d5c0ebf commit 565b682

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

library/unittest.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,17 +1804,21 @@ msgid ""
18041804
"of the standard failure message. When set to ``False``, the custom message "
18051805
"replaces the standard message."
18061806
msgstr ""
1807+
"这个类属性决定当将一个自定义失败消息作为 msg 参数传给一个失败的 assertXYY 调用时会发生什么。默认值为 ``True``。 "
1808+
"在此情况下,自定义消息会被添加到标准失败消息的末尾。 当设为 ``False`` 时,自定义消息会替换标准消息。"
18071809

18081810
#: ../../library/unittest.rst:1370
18091811
msgid ""
18101812
"The class setting can be overridden in individual test methods by assigning "
18111813
"an instance attribute, self.longMessage, to ``True`` or ``False`` before "
18121814
"calling the assert methods."
18131815
msgstr ""
1816+
"类设置可以通过在调用断言方法之前将一个实例属性 self.longMessage 赋值为 ``True`` 或 ``False`` "
1817+
"在单个测试方法中进行重载。"
18141818

18151819
#: ../../library/unittest.rst:1374
18161820
msgid "The class setting gets reset before each test call."
1817-
msgstr ""
1821+
msgstr "类设置会在每个测试调用之前被重置。"
18181822

18191823
#: ../../library/unittest.rst:1381
18201824
msgid ""
@@ -1824,12 +1828,15 @@ msgid ""
18241828
"(including all the sequence comparison methods that delegate to it), "
18251829
":meth:`assertDictEqual` and :meth:`assertMultiLineEqual`."
18261830
msgstr ""
1831+
"这个属性控制来自在测试失败时报告 diffs 的断言方法的 diffs 输出的最大长度。 它默认为 80*8 个字符。 这个属性所影响的断言方法有 "
1832+
":meth:`assertSequenceEqual` (包括所有委托给它的序列比较方法), :meth:`assertDictEqual` 以及 "
1833+
":meth:`assertMultiLineEqual`。"
18271834

18281835
#: ../../library/unittest.rst:1388
18291836
msgid ""
18301837
"Setting ``maxDiff`` to ``None`` means that there is no maximum length of "
18311838
"diffs."
1832-
msgstr ""
1839+
msgstr "将 ``maxDiff`` 设为 ``None`` 表示不限制 diffs 的最大长度。"
18331840

18341841
#: ../../library/unittest.rst:1394
18351842
msgid ""

0 commit comments

Comments
 (0)