File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1801,25 +1801,27 @@ msgstr ""
18011801msgid ""
18021802"Fails if either of *first* or *second* does not have a "
18031803":meth:`set.difference` method."
1804- msgstr ""
1804+ msgstr "如果 *first* 或 *second* 没有 :meth:`set.difference` 方法则测试失败。 "
18051805
18061806#: ../../library/unittest.rst:1354
18071807msgid ""
18081808"Test that two dictionaries are equal. If not, an error message is "
18091809"constructed that shows the differences in the dictionaries. This method will"
18101810" be used by default to compare dictionaries in calls to :meth:`assertEqual`."
18111811msgstr ""
1812+ "测试两个字典是否相等。 如果不相等,则会构造一个错误消息来显示两个字典的差异。 此方法会在对 :meth:`assertEqual` "
1813+ "的调用中默认被用来进行字典的比较。"
18121814
18131815#: ../../library/unittest.rst:1365
18141816msgid ""
18151817"Finally the :class:`TestCase` provides the following methods and attributes:"
1816- msgstr ""
1818+ msgstr "最后 :class:`TestCase` 还提供了以下的方法和属性: "
18171819
18181820#: ../../library/unittest.rst:1370
18191821msgid ""
18201822"Signals a test failure unconditionally, with *msg* or ``None`` for the error"
18211823" message."
1822- msgstr ""
1824+ msgstr "无条件地发出测试失败消息,附带错误消息 *msg* 或 ``None``。 "
18231825
18241826#: ../../library/unittest.rst:1376
18251827msgid ""
@@ -1829,6 +1831,8 @@ msgid ""
18291831"fair\" with the framework. The initial value of this attribute is "
18301832":exc:`AssertionError`."
18311833msgstr ""
1834+ "这个类属性给出测试方法所引发的异常。 如果某个测试框架需要使用专门的异常,并可能附带额外的信息,则必须子类化该类以便与框架“正常互动”。 "
1835+ "这个属性的初始值为 :exc:`AssertionError`。"
18321836
18331837#: ../../library/unittest.rst:1385
18341838msgid ""
You can’t perform that action at this time.
0 commit comments