Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a70c58

Browse files
[po] auto sync
1 parent c0a35f5 commit 3a70c58

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

library/unittest.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,6 +2366,8 @@ msgid ""
23662366
"searches *module* for classes derived from :class:`TestCase` and creates an "
23672367
"instance of the class for each test method defined for the class."
23682368
msgstr ""
2369+
"返回包含在给定模块中的所有测试用例的测试套件。 此方法会在 *module* 中搜索从派生自 :class:`TestCase` "
2370+
"的类并为该类定义的每个测试方法创建一个类实例。"
23692371

23702372
#: ../../library/unittest.rst:1749
23712373
msgid ""
@@ -2375,6 +2377,9 @@ msgid ""
23752377
"play well with this method. Doing so, however, can be useful when the "
23762378
"fixtures are different and defined in subclasses."
23772379
msgstr ""
2380+
"虽然使用 :class:`TestCase` "
2381+
"所派生的类的层级结构可以方便地共享配置和辅助函数,但在不打算直接实例化的基类上定义测试方法并不能很好地配合此方法使用。 "
2382+
"不过,当配置有差异并且定义在子类当中时这样做还是有用处的。"
23782383

23792384
#: ../../library/unittest.rst:1755
23802385
msgid ""
@@ -2383,6 +2388,8 @@ msgid ""
23832388
"`load_tests protocol`_. The *pattern* argument is passed as the third "
23842389
"argument to ``load_tests``."
23852390
msgstr ""
2391+
"如果一个模块提供了 ``load_tests`` 函数则它将被调用以加载测试。 这允许模块自行定制测试加载过程。 这就称为 `load_tests "
2392+
"protocol`_。 *pattern* 参数会被作为传给 ``load_tests`` 的第三个参数。"
23862393

23872394
#: ../../library/unittest.rst:1760
23882395
msgid "Support for ``load_tests`` added."

0 commit comments

Comments
 (0)