Skip to content

Commit dddfd14

Browse files
[po] auto sync
1 parent d5573bc commit dddfd14

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.75%", "updated_at": "2025-06-08T15:55:53Z"}
1+
{"translation": "81.75%", "updated_at": "2025-06-09T06:59:28Z"}

library/doctest.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,9 @@ msgid ""
18831883
"will be passed a :class:`DocTest` object. The *setUp* function can access "
18841884
"the test globals as the :attr:`~DocTest.globs` attribute of the test passed."
18851885
msgstr ""
1886+
"可选参数 *setUp* 为测试套件指定一个设置函数。 此函数会在运行每个文件中的测试之前被调用。 *setUp* 函数将被传入一个 "
1887+
":class:`DocTest` 对象。 *setUp* 函数可以通过所传入测试的 :attr:`~DocTest.globs` "
1888+
"属性来访问测试的全局变量。"
18861889

18871890
#: ../../library/doctest.rst:1083
18881891
msgid ""
@@ -1892,6 +1895,9 @@ msgid ""
18921895
" can access the test globals as the :attr:`~DocTest.globs` attribute of the "
18931896
"test passed."
18941897
msgstr ""
1898+
"可选参数 *tearDown* 为测试套件指定一个拆卸函数。 此函数会在运行每个文件中的测试之后被调用。 *tearDown* 函数将被传入一个 "
1899+
":class:`DocTest` 对象。 *tearDown* 函数可以通过所传入测试的 :attr:`~DocTest.globs` "
1900+
"属性来访问测试的全局变量。"
18951901

18961902
#: ../../library/doctest.rst:1089
18971903
msgid ""
@@ -1946,6 +1952,8 @@ msgid ""
19461952
"variables for the tests. A new copy of this dictionary is created for each "
19471953
"test. By default, *globs* is the module's :attr:`~module.__dict__`."
19481954
msgstr ""
1955+
"可选参数 *globs* 是一个包含用于测试的初始全局变量的字典。 针对每个测试都将创建一个该字典的新副本。 在默认情况下,*globs* 就是模块的 "
1956+
":attr:`~module.__dict__`。"
19491957

19501958
#: ../../library/doctest.rst:1129
19511959
msgid ""
@@ -2193,6 +2201,8 @@ msgid ""
21932201
"``None`` if the filename is unknown, or if the :class:`!DocTest` was not "
21942202
"extracted from a file."
21952203
msgstr ""
2204+
"该 :class:`DocTest` 所属文件的名称;或者如果文件名未知、或 :class:`!DocTest` 不是从文件中提取的则为 "
2205+
"``None``。"
21962206

21972207
#: ../../library/doctest.rst:1283
21982208
msgid ""

0 commit comments

Comments
 (0)