@@ -2316,7 +2316,7 @@ msgstr ""
23162316
23172317#: ../../library/unittest.rst:1703
23182318msgid "Loading and running tests"
2319- msgstr ""
2319+ msgstr "加载和运行测试 "
23202320
23212321#: ../../library/unittest.rst:1707
23222322msgid ""
@@ -2326,10 +2326,13 @@ msgid ""
23262326":data:`unittest.defaultTestLoader`. Using a subclass or instance, however, "
23272327"allows customization of some configurable properties."
23282328msgstr ""
2329+ ":class:`TestLoader` 类可被用来基于类和模块创建测试套件。 通常,没有必要创建该类的实例;:mod:`unittest` "
2330+ "模块提供了一个可作为 :data:`unittest.defaultTestLoader` 共享的实例。 "
2331+ "但是,使用子类或实例允许对某些配置属性进行定制。"
23292332
23302333#: ../../library/unittest.rst:1713
23312334msgid ":class:`TestLoader` objects have the following attributes:"
2332- msgstr ""
2335+ msgstr ":class:`TestLoader` 对象具有下列属性: "
23332336
23342337#: ../../library/unittest.rst:1718
23352338msgid ""
@@ -2338,10 +2341,12 @@ msgid ""
23382341"method raising an exception to the caller. Non-fatal errors are also "
23392342"indicated by a synthetic test that will raise the original error when run."
23402343msgstr ""
2344+ "包含在加载测试期间遇到的非致命错误的列表。 在任何时候都不会被加载方重置。 致命错误是通过相关方法引发一个异常来向调用方发出信号的。 "
2345+ "非致命错误也是由一个将在运行时引发原始错误的合成测试来提示的。"
23412346
23422347#: ../../library/unittest.rst:1727
23432348msgid ":class:`TestLoader` objects have the following methods:"
2344- msgstr ""
2349+ msgstr ":class:`TestLoader` 对象具有下列方法: "
23452350
23462351#: ../../library/unittest.rst:1732
23472352msgid ""
0 commit comments