File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1842,33 +1842,35 @@ msgstr "将 ``maxDiff`` 设为 ``None`` 表示不限制 diffs 的最大长度。
18421842msgid ""
18431843"Testing frameworks can use the following methods to collect information on "
18441844"the test:"
1845- msgstr ""
1845+ msgstr "测试框架可使用下列方法在测试时收集信息: "
18461846
18471847#: ../../library/unittest.rst:1400
18481848msgid ""
18491849"Return the number of tests represented by this test object. For "
18501850":class:`TestCase` instances, this will always be ``1``."
1851- msgstr ""
1851+ msgstr "返回此测试对象所提供的测试数量。 对于 :class:`TestCase` 实例,该数量将总是为 ``1``。 "
18521852
18531853#: ../../library/unittest.rst:1406
18541854msgid ""
18551855"Return an instance of the test result class that should be used for this "
18561856"test case class (if no other result instance is provided to the :meth:`run` "
18571857"method)."
1858- msgstr ""
1858+ msgstr "返回此测试类所要使用的测试结果类的实例(如果未向 :meth:`run` 方法提供其他结果实例)。 "
18591859
18601860#: ../../library/unittest.rst:1410
18611861msgid ""
18621862"For :class:`TestCase` instances, this will always be an instance of "
18631863":class:`TestResult`; subclasses of :class:`TestCase` should override this as"
18641864" necessary."
18651865msgstr ""
1866+ "对于 :class:`TestCase` 实例,该返回值将总是为 :class:`TestResult` 的实例;:class:`TestCase` "
1867+ "的子类应当在有必要时重载此方法。"
18661868
18671869#: ../../library/unittest.rst:1417
18681870msgid ""
18691871"Return a string identifying the specific test case. This is usually the "
18701872"full name of the test method, including the module and class name."
1871- msgstr ""
1873+ msgstr "返回一个标识指定测试用例的字符串。 该返回值通常为测试方法的完整名称,包括模块名和类名。 "
18721874
18731875#: ../../library/unittest.rst:1423
18741876msgid ""
You can’t perform that action at this time.
0 commit comments