@@ -1756,6 +1756,8 @@ msgid ""
17561756"included in the error message. This method is used by default when comparing"
17571757" strings with :meth:`assertEqual`."
17581758msgstr ""
1759+ "测试多行字符串 *first* 是否与字符串 *second* 相等。 当不相等时将在错误消息中包括两个字符串之间差异的高亮显示。 此方法会在通过 "
1760+ ":meth:`assertEqual` 进行字符串比较时默认被使用。"
17591761
17601762#: ../../library/unittest.rst:1316
17611763msgid ""
@@ -1764,12 +1766,16 @@ msgid ""
17641766"raised. If the sequences are different an error message is constructed that"
17651767" shows the difference between the two."
17661768msgstr ""
1769+ "测试两个序列是否相等。 如果提供了 *seq_type*,则 *first* 和 *second* 都必须为 *seq_type* "
1770+ "的实例否则将引发失败。 如果两个序列不相等则会构造一个错误消息来显示两者之间的差异。"
17671771
17681772#: ../../library/unittest.rst:1321
17691773msgid ""
17701774"This method is not called directly by :meth:`assertEqual`, but it's used to "
17711775"implement :meth:`assertListEqual` and :meth:`assertTupleEqual`."
17721776msgstr ""
1777+ "此方法不会被 :meth:`assertEqual` 直接调用,但它会被用于实现 :meth:`assertListEqual` 和 "
1778+ ":meth:`assertTupleEqual`。"
17731779
17741780#: ../../library/unittest.rst:1331
17751781msgid ""
@@ -1779,13 +1785,17 @@ msgid ""
17791785" are used by default when comparing lists or tuples with "
17801786":meth:`assertEqual`."
17811787msgstr ""
1788+ "测试两个列表或元组是否相等。 如果不相等,则会构造一个错误消息来显示两者之间的差异。 如果某个形参的类型不正确也会引发错误。 这些方法会在通过 "
1789+ ":meth:`assertEqual` 进行列表或元组比较时默认被使用。"
17821790
17831791#: ../../library/unittest.rst:1342
17841792msgid ""
17851793"Tests that two sets are equal. If not, an error message is constructed that"
17861794" lists the differences between the sets. This method is used by default "
17871795"when comparing sets or frozensets with :meth:`assertEqual`."
17881796msgstr ""
1797+ "测试两个集合是否相等。 如果不相等,则会构造一个错误消息来列出两者之间的差异。 此方法会在通过 :meth:`assertEqual` "
1798+ "进行集合或冻结集合比较时默认被使用。"
17891799
17901800#: ../../library/unittest.rst:1346
17911801msgid ""
0 commit comments