@@ -2923,26 +2923,28 @@ msgstr ""
29232923msgid ""
29242924"The default implementation does nothing when the outcome is a success, and "
29252925"records subtest failures as normal failures."
2926- msgstr ""
2926+ msgstr "默认实现在测试结果为成功时将不做任何事,并会将子测试的失败记录为普通的失败。 "
29272927
29282928#: ../../library/unittest.rst:2139
29292929msgid ""
29302930"A concrete implementation of :class:`TestResult` used by the "
29312931":class:`TextTestRunner`."
2932- msgstr ""
2932+ msgstr ":class:`TestResult` 的一个具体实现,由 :class:`TextTestRunner` 使用。 "
29332933
29342934#: ../../library/unittest.rst:2142
29352935msgid ""
29362936"This class was previously named ``_TextTestResult``. The old name still "
29372937"exists as an alias but is deprecated."
2938- msgstr ""
2938+ msgstr "这个类在之前被命名为 ``_TextTestResult``。 这个旧名字仍然作为别名存在,但已被弃用。 "
29392939
29402940#: ../../library/unittest.rst:2149
29412941msgid ""
29422942"Instance of the :class:`TestLoader` class intended to be shared. If no "
29432943"customization of the :class:`TestLoader` is needed, this instance can be "
29442944"used instead of repeatedly creating new instances."
29452945msgstr ""
2946+ "用于分享的 :class:`TestLoader` 类实例。 如果不需要自制 "
2947+ ":class:`TestLoader`,则可以使用该实例而不必重复创建新的实例。"
29462948
29472949#: ../../library/unittest.rst:2157
29482950msgid ""
@@ -2954,6 +2956,9 @@ msgid ""
29542956"as the interface to construct runners changes when features are added to "
29552957"unittest."
29562958msgstr ""
2959+ "一个将结果输出到流的基本测试运行器。 如果 *stream* 为默认的 ``None``,则会使用 :data:`sys.stderr` 作为输出流。 "
2960+ "这个类具有一些配置形参,但实际上都非常简单。 运行测试套件的图形化应用程序应当提供替代实现。 这样的实现应当在添加新特性到 unittest 时接受 "
2961+ "``**kwargs`` 作为修改构造运行器的接口。"
29572962
29582963#: ../../library/unittest.rst:2164
29592964msgid ""
0 commit comments