@@ -355,7 +355,7 @@ msgstr ""
355355msgid ""
356356"There is also a command line shortcut for running :func:`testmod`, see "
357357"section :ref:`doctest-cli`."
358- msgstr ""
358+ msgstr "另外还有一个运行 :func:`testmod` 的命令行快捷方式,参见 :ref:`doctest-cli` 一节。 "
359359
360360#: ../../library/doctest.rst:179
361361msgid ""
@@ -481,7 +481,7 @@ msgstr ""
481481msgid ""
482482"There is also a command line shortcut for running :func:`testfile`, see "
483483"section :ref:`doctest-cli`."
484- msgstr ""
484+ msgstr "另外还有一个运行 :func:`testfile` 的命令行快捷方式,参见 :ref:`doctest-cli` 一节。 "
485485
486486#: ../../library/doctest.rst:243
487487msgid ""
@@ -491,22 +491,22 @@ msgstr "关于 :func:`testfile` 的更多信息,请参见 :ref:`doctest-basic-
491491
492492#: ../../library/doctest.rst:249
493493msgid "Command-line Usage"
494- msgstr ""
494+ msgstr "命令行用法 "
495495
496496#: ../../library/doctest.rst:251
497497msgid ""
498498"The :mod:`doctest` module can be invoked as a script from the command line:"
499- msgstr ""
499+ msgstr ":mod:`doctest` 模块可以在命令行下作为一个脚本来唤起: "
500500
501501#: ../../library/doctest.rst:253
502502msgid "python -m doctest [-v] [-o OPTION] [-f] file [file ...]"
503- msgstr ""
503+ msgstr "python -m doctest [-v] [-o OPTION] [-f] file [file ...] "
504504
505505#: ../../library/doctest.rst:261
506506msgid ""
507507"Detailed report of all examples tried is printed to standard output, along "
508508"with assorted summaries at the end::"
509- msgstr ""
509+ msgstr "所有尝试过的例子的详细报告将被打印到标准输出,最后还会带上各种总结:: "
510510
511511#: ../../library/doctest.rst:264
512512msgid "python -m doctest -v example.py"
@@ -518,12 +518,15 @@ msgid ""
518518":func:`testmod` on it. Note that this may not work correctly if the file is "
519519"part of a package and imports other submodules from that package."
520520msgstr ""
521+ "这会将 :file:`example.py` 作为独立模块导入并对其运行 :func:`testmod`。 "
522+ "请注意如果文件是某个包的一部分并且从那个包导入了其他子模块则此命令可能无法正确工作。"
521523
522524#: ../../library/doctest.rst:270
523525msgid ""
524526"If the file name does not end with :file:`.py`, :mod:`!doctest` infers that "
525527"it must be run with :func:`testfile` instead::"
526528msgstr ""
529+ "如果文件名不是以 :file:`.py` 结尾,:mod:`!doctest` 将推断它必须改用 :func:`testfile` 来运行::"
527530
528531#: ../../library/doctest.rst:273
529532msgid "python -m doctest -v example.txt"
@@ -533,11 +536,11 @@ msgstr "python -m doctest -v example.txt"
533536msgid ""
534537"Option flags control various aspects of doctest's behavior, see section "
535538":ref:`doctest-options`."
536- msgstr ""
539+ msgstr "控制 doctest 行为的各种不同方面,参见 :ref:`doctest-options` 一节。 "
537540
538541#: ../../library/doctest.rst:284
539542msgid "This is shorthand for ``-o FAIL_FAST``."
540- msgstr ""
543+ msgstr "这是 ``-o FAIL_FAST`` 的简写形式。 "
541544
542545#: ../../library/doctest.rst:292
543546msgid "How It Works"
0 commit comments