@@ -1033,25 +1033,27 @@ msgstr ""
10331033
10341034#: ../../library/test.rst:877
10351035msgid "Assert instances of *cls* are deallocated after iterating."
1036- msgstr ""
1036+ msgstr "断言 *cls* 的实例在迭代后被释放。 "
10371037
10381038#: ../../library/test.rst:882
10391039msgid ""
10401040"Check for the existence of the compiler executables whose names are listed "
10411041"in *cmd_names* or all the compiler executables when *cmd_names* is empty and"
10421042" return the first missing executable or ``None`` when none is found missing."
10431043msgstr ""
1044+ "检查在 *cmd_names* 中列出名称的或者当 *cmd_names* "
1045+ "为空时所有的编译器可执行文件是否存在并返回第一个丢失的可执行文件或者如果未发现任何丢失则返回 ``None``。"
10441046
10451047#: ../../library/test.rst:890
10461048msgid ""
10471049"Assert that the ``__all__`` variable of *module* contains all public names."
1048- msgstr ""
1050+ msgstr "断言 *module* 的 ``__all__`` 变量包含全部公共名称。 "
10491051
10501052#: ../../library/test.rst:892
10511053msgid ""
10521054"The module's public names (its API) are detected automatically based on "
10531055"whether they match the public name convention and were defined in *module*."
1054- msgstr ""
1056+ msgstr "模块的公共名称(它的 API)是根据它们是否符合公共名称惯例并在 *module* 中被定义来自动检测的。 "
10551057
10561058#: ../../library/test.rst:896
10571059msgid ""
@@ -1060,6 +1062,9 @@ msgid ""
10601062"API. One case for this is when *module* imports part of its public API from "
10611063"other modules, possibly a C backend (like ``csv`` and its ``_csv``)."
10621064msgstr ""
1065+ "*name_of_module* 参数可以(用字符串或元组的形式)指定一个 API 可以被定义为什么模块以便被检测为一个公共 API。 "
1066+ "一种这样的情况会在 *module* 从其他模块,可能是一个 C 后端 (如 ``csv`` 和它的 ``_csv``) 导入其公共 API "
1067+ "的某一组成部分时发生。"
10631068
10641069#: ../../library/test.rst:901
10651070msgid ""
@@ -1068,27 +1073,31 @@ msgid ""
10681073"``__module__`` attribute. If provided, it will be added to the automatically"
10691074" detected ones."
10701075msgstr ""
1076+ "*extra* 参数可以是一个在其他情况下不会被自动检测为 \" public\" 的名称集合,例如没有适当 ``__module__`` 属性的对象。 "
1077+ "如果提供该参数,它将被添加到自动检测到的对象中。"
10711078
10721079#: ../../library/test.rst:905
10731080msgid ""
10741081"The *not_exported* argument can be a set of names that must not be treated "
10751082"as part of the public API even though their names indicate otherwise."
1076- msgstr ""
1083+ msgstr "*not_exported* 参数可以是一个不可被当作公共 API 的一部分的名称集合,即使其名称没有显式指明这一点。 "
10771084
10781085#: ../../library/test.rst:908 ../../library/test.rst:1531
10791086msgid "Example use::"
1080- msgstr ""
1087+ msgstr "用法示例:: "
10811088
10821089#: ../../library/test.rst:931
10831090msgid ""
10841091"Skip tests if the :mod:`multiprocessing.synchronize` module is missing, if "
10851092"there is no available semaphore implementation, or if creating a lock raises"
10861093" an :exc:`OSError`."
10871094msgstr ""
1095+ "如果没有 :mod:`multiprocessing.synchronize` 模块,没有可用的 semaphore 实现,或者如果创建一个锁会引发 "
1096+ ":exc:`OSError` 则跳过测试。"
10881097
10891098#: ../../library/test.rst:940
10901099msgid "Assert that type *tp* cannot be instantiated using *args* and *kwds*."
1091- msgstr ""
1100+ msgstr "断言类型 *tp* 不能使用 *args* 和 *kwds* 来实例化。 "
10921101
10931102#: ../../library/test.rst:945
10941103msgid "The :mod:`test.support` module defines the following classes:"
0 commit comments