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

Skip to content

Commit 692d23f

Browse files
[po] auto sync
1 parent 3265069 commit 692d23f

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

extending/extending.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# ww song <[email protected]>, 2018
1111
# Shengjing Zhu <[email protected]>, 2019
1212
# Harry Liu. <[email protected]>, 2020
13-
# Freesand Leo <[email protected]>, 2021
13+
# Freesand Leo <[email protected]>, 2022
1414
#
1515
#, fuzzy
1616
msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919
"Report-Msgid-Bugs-To: \n"
2020
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
2121
"PO-Revision-Date: 2017-02-16 17:42+0000\n"
22-
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
22+
"Last-Translator: Freesand Leo <[email protected]>, 2022\n"
2323
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2424
"MIME-Version: 1.0\n"
2525
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1109,8 +1109,8 @@ msgid ""
11091109
"gives full owner responsibilities (the new owner must dispose of the "
11101110
"reference properly, as well as the previous owner)."
11111111
msgstr ""
1112-
"借用可以变为拥有引用,通过调用 :c:func:`Py_INCREF` "
1113-
"。这不会影响已经借出的拥有者的状态。这回创建一个新的拥有引用,并给予完全的拥有者责任(新的拥有者必须恰当的处置引用,就像之前的拥有者那样)。"
1112+
"借用可以变为拥有引用,通过调用 :c:func:`Py_INCREF`。 这不会影响已经借出的拥有者的状态。 "
1113+
"这会创建一个新的拥有引用,并给予完全的拥有者责任新的拥有者必须恰当的处置引用,就像之前的拥有者那样。"
11141114

11151115
#: ../../extending/extending.rst:967
11161116
msgid "Ownership Rules"

library/unittest.po

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ msgstr ":class:`TestLoader` 对象具有下列方法:"
23522352
msgid ""
23532353
"Return a suite of all test cases contained in the :class:`TestCase`\\ "
23542354
"-derived :class:`testCaseClass`."
2355-
msgstr ""
2355+
msgstr "返回一个包含在 :class:`TestCase` 所派生的 :class:`testCaseClass` 中的所有测试用例的测试套件。"
23562356

23572357
#: ../../library/unittest.rst:1735
23582358
msgid ""
@@ -2362,13 +2362,18 @@ msgid ""
23622362
":meth:`runTest` method is implemented, a single test case is created for "
23632363
"that method instead."
23642364
msgstr ""
2365+
"会为每个由 :meth:`getTestCaseNames` 指明的方法创建一个测试用例实例。 在默认情况下这些都是以 ``test`` "
2366+
"开头的方法名称。 如果 :meth:`getTestCaseNames` 不返回任何方法,但 :meth:`runTest` "
2367+
"方法已被实现,则会为该方法创建一个单独的测试用例。"
23652368

23662369
#: ../../library/unittest.rst:1744
23672370
msgid ""
23682371
"Return a suite of all test cases contained in the given module. This method "
23692372
"searches *module* for classes derived from :class:`TestCase` and creates an "
23702373
"instance of the class for each test method defined for the class."
23712374
msgstr ""
2375+
"返回包含在给定模块中的所有测试用例的测试套件。 此方法会在 *module* 中搜索从派生自 :class:`TestCase` "
2376+
"的类并为该类定义的每个测试方法创建一个类实例。"
23722377

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

23822390
#: ../../library/unittest.rst:1757
23832391
msgid ""
@@ -2386,6 +2394,8 @@ msgid ""
23862394
"`load_tests protocol`_. The *pattern* argument is passed as the third "
23872395
"argument to ``load_tests``."
23882396
msgstr ""
2397+
"如果一个模块提供了 ``load_tests`` 函数则它将被调用以加载测试。 这允许模块自行定制测试加载过程。 这就称为 `load_tests "
2398+
"protocol`_。 *pattern* 参数会被作为传给 ``load_tests`` 的第三个参数。"
23892399

23902400
#: ../../library/unittest.rst:1762
23912401
msgid "Support for ``load_tests`` added."

0 commit comments

Comments
 (0)