File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1763,25 +1763,27 @@ msgstr ""
17631763msgid ""
17641764"Fails if either of *first* or *second* does not have a "
17651765":meth:`set.difference` method."
1766- msgstr ""
1766+ msgstr "如果 *first* 或 *second* 没有 :meth:`set.difference` 方法则测试失败。 "
17671767
17681768#: ../../library/unittest.rst:1333
17691769msgid ""
17701770"Test that two dictionaries are equal. If not, an error message is "
17711771"constructed that shows the differences in the dictionaries. This method will"
17721772" be used by default to compare dictionaries in calls to :meth:`assertEqual`."
17731773msgstr ""
1774+ "测试两个字典是否相等。 如果不相等,则会构造一个错误消息来显示两个字典的差异。 此方法会在对 :meth:`assertEqual` "
1775+ "的调用中默认被用来进行字典的比较。"
17741776
17751777#: ../../library/unittest.rst:1344
17761778msgid ""
17771779"Finally the :class:`TestCase` provides the following methods and attributes:"
1778- msgstr ""
1780+ msgstr "最后 :class:`TestCase` 还提供了以下的方法和属性: "
17791781
17801782#: ../../library/unittest.rst:1349
17811783msgid ""
17821784"Signals a test failure unconditionally, with *msg* or ``None`` for the error"
17831785" message."
1784- msgstr ""
1786+ msgstr "无条件地发出测试失败消息,附带错误消息 *msg* 或 ``None``。 "
17851787
17861788#: ../../library/unittest.rst:1355
17871789msgid ""
@@ -1791,6 +1793,8 @@ msgid ""
17911793"fair\" with the framework. The initial value of this attribute is "
17921794":exc:`AssertionError`."
17931795msgstr ""
1796+ "这个类属性给出测试方法所引发的异常。 如果某个测试框架需要使用专门的异常,并可能附带额外的信息,则必须子类化该类以便与框架“正常互动”。 "
1797+ "这个属性的初始值为 :exc:`AssertionError`。"
17941798
17951799#: ../../library/unittest.rst:1364
17961800msgid ""
You can’t perform that action at this time.
0 commit comments