@@ -2161,31 +2161,33 @@ msgstr ":meth:`.assertRaisesRegex`"
21612161
21622162#: ../../library/unittest.rst:1602
21632163msgid "assertRaisesRegexp"
2164- msgstr ""
2164+ msgstr "assertRaisesRegexp "
21652165
21662166#: ../../library/unittest.rst:1605
21672167msgid "The fail* aliases listed in the second column have been deprecated."
2168- msgstr ""
2168+ msgstr "在第二列中列出的 fail* 别名已经被弃用。 "
21692169
21702170#: ../../library/unittest.rst:1607
21712171msgid "The assert* aliases listed in the third column have been deprecated."
2172- msgstr ""
2172+ msgstr "在第三列中列出的 assert* 别名已经被弃用。 "
21732173
21742174#: ../../library/unittest.rst:1609
21752175msgid ""
21762176"``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed to "
21772177":meth:`.assertRegex` and :meth:`.assertRaisesRegex`."
21782178msgstr ""
2179+ "``assertRegexpMatches`` 和 ``assertRaisesRegexp`` 已经被重命名为 "
2180+ ":meth:`.assertRegex` 和 :meth:`.assertRaisesRegex`。"
21792181
21802182#: ../../library/unittest.rst:1612
21812183msgid ""
21822184"The ``assertNotRegexpMatches`` name is deprecated in favor of "
21832185":meth:`.assertNotRegex`."
2184- msgstr ""
2186+ msgstr "``assertNotRegexpMatches`` 这个名称已被弃用并应改用 :meth:`.assertNotRegex`。 "
21852187
21862188#: ../../library/unittest.rst:1618
21872189msgid "Grouping tests"
2188- msgstr ""
2190+ msgstr "分组测试 "
21892191
21902192#: ../../library/unittest.rst:1622
21912193msgid ""
@@ -2194,6 +2196,8 @@ msgid ""
21942196"it to be run as any other test case. Running a :class:`TestSuite` instance "
21952197"is the same as iterating over the suite, running each test individually."
21962198msgstr ""
2199+ "这个类代表对单独测试用例和测试套件的聚合。 这个类提供给测试运行方所需的接口以允许其像任何其他测试用例一样运行。 运行一个 "
2200+ ":class:`TestSuite` 实例与对套件执行迭代来逐一运行每个测试的效果相同。"
21972201
21982202#: ../../library/unittest.rst:1627
21992203msgid ""
@@ -2202,6 +2206,8 @@ msgid ""
22022206" methods are provided to add test cases and suites to the collection later "
22032207"on."
22042208msgstr ""
2209+ "如果给出了 *tests*,则它必须是一个包含单独测试用例的可迭代对象或是将被用于初始构建测试套件的其他测试套件。 "
2210+ "额外的方法被提供用来在随后向测试集添加测试用例和测试套件。"
22052211
22062212#: ../../library/unittest.rst:1631
22072213msgid ""
@@ -2211,10 +2217,12 @@ msgid ""
22112217"additional methods are available to add tests to :class:`TestSuite` "
22122218"instances:"
22132219msgstr ""
2220+ ":class:`TestSuite` 对象的行为与 :class:`TestCase` 对象很相似,区别在于它们并不会真正实现一个测试。 "
2221+ "它们会被用来将测试聚合为多个要同时运行的测试分组。 还有一些额外的方法会被用来向 :class:`TestSuite` 实例添加测试:"
22142222
22152223#: ../../library/unittest.rst:1639
22162224msgid "Add a :class:`TestCase` or :class:`TestSuite` to the suite."
2217- msgstr ""
2225+ msgstr "向测试套件添加 :class:`TestCase` 或 :class:`TestSuite`。 "
22182226
22192227#: ../../library/unittest.rst:1644
22202228msgid ""
0 commit comments