@@ -21,7 +21,7 @@ msgid ""
2121msgstr ""
2222"Project-Id-Version : Python 3.12\n "
2323"Report-Msgid-Bugs-To : \n "
24- "POT-Creation-Date : 2024-01-05 14:14+0000\n "
24+ "POT-Creation-Date : 2024-01-12 14:14+0000\n "
2525"PO-Revision-Date : 2021-06-28 01:04+0000\n "
2626"
Last-Translator :
Freesand Leo <[email protected] >, 2024\n "
2727"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -285,18 +285,13 @@ msgid ""
285285"In addition, there are cases when you want tests to be part of a module but "
286286"not part of the help text, which requires that the tests not be included in "
287287"the docstring. Doctest looks for a module-level variable called ``__test__``"
288- " and uses it to locate other tests. If ``M.__test__`` exists and is truthy, "
289- "it must be a dict, and each entry maps a (string) name to a function object,"
290- " class object, or string. Function and class object docstrings found from "
288+ " and uses it to locate other tests. If ``M.__test__`` exists, it must be a "
289+ "dict, and each entry maps a (string) name to a function object, class "
290+ "object, or string. Function and class object docstrings found from "
291291"``M.__test__`` are searched, and strings are treated as if they were "
292292"docstrings. In output, a key ``K`` in ``M.__test__`` appears with name "
293293"``M.__test__.K``."
294294msgstr ""
295- "此外,有时您希望测试成为模块的一部分但不是帮助文本的一部分,这就要求测试不包括在文档字符串中。 在此情况下 doctest 会查找一个名为 "
296- "``__test__`` 的模块级变量并用它来定位其他测试。 如果 ``M.__test__`` "
297- "存在且为真值,则它必须是一个字典,其中每个条目都将(字符串)名称映射到函数对象、类对象或字符串。 从 ``M.__test__`` "
298- "找到的函数和类对象文档字符串将会被搜索,字符串会被当作文档字符串来处理。 在输出中,``M.__test__`` 中的键 ``K`` 会作为名称 "
299- "``M.__test__.K`` 出现。"
300295
301296#: ../../library/doctest.rst:289
302297msgid ""
@@ -1084,13 +1079,11 @@ msgstr ""
10841079
10851080#: ../../library/doctest.rst:947
10861081msgid ""
1087- "Also test examples reachable from dict ``m.__test__``, if it exists and is "
1088- "not ``None``. `` m.__test__`` maps names (strings) to functions, classes and"
1089- " strings; function and class docstrings are searched for examples; strings "
1090- "are searched directly, as if they were docstrings."
1082+ "Also test examples reachable from dict ``m.__test__``, if it exists. "
1083+ "`` m.__test__`` maps names (strings) to functions, classes and strings; "
1084+ "function and class docstrings are searched for examples; strings are "
1085+ "searched directly, as if they were docstrings."
10911086msgstr ""
1092- "也测试从dict ``m.__test__`` 可达到的用例,如果它存在并且不是 ``None`` 。 ``m.__test__`` "
1093- "将名字(字符串)映射到函数、类和字符串;函数和类的文档串被搜索到的用例;字符串被直接搜索到,就像它们是文档串一样。"
10941087
10951088#: ../../library/doctest.rst:952
10961089msgid ""
0 commit comments