@@ -186,7 +186,7 @@ msgstr ":mod:`unittest` 模块提供了一系列创建和运行测试的工具
186186
187187#: ../../library/unittest.rst:88
188188msgid "Here is a short script to test three string methods::"
189- msgstr "这是一段简短的代码,来测试三种字符串方法: "
189+ msgstr "这是一段简短的代码,来测试三种字符串方法:: "
190190
191191#: ../../library/unittest.rst:112
192192msgid ""
@@ -229,14 +229,14 @@ msgid ""
229229"command line, the above script produces an output that looks like this::"
230230msgstr ""
231231"最后的代码块中,演示了运行测试的一个简单的方法。 :func:`unittest.main` "
232- "提供了一个测试脚本的命令行接口。当在命令行运行该测试脚本,上文的脚本生成如以下格式的输出: "
232+ "提供了一个测试脚本的命令行接口。当在命令行运行该测试脚本,上文的脚本生成如以下格式的输出:: "
233233
234234#: ../../library/unittest.rst:138
235235msgid ""
236236"Passing the ``-v`` option to your test script will instruct "
237237":func:`unittest.main` to enable a higher level of verbosity, and produce the"
238238" following output::"
239- msgstr "在调用测试脚本时添加 ``-v`` 参数使 :func:`unittest.main` 显示更为详细的信息,生成如以下形式的输出: "
239+ msgstr "在调用测试脚本时添加 ``-v`` 参数使 :func:`unittest.main` 显示更为详细的信息,生成如以下形式的输出:: "
240240
241241#: ../../library/unittest.rst:150
242242msgid ""
@@ -253,7 +253,7 @@ msgstr "命令行界面"
253253msgid ""
254254"The unittest module can be used from the command line to run tests from "
255255"modules, classes or even individual test methods::"
256- msgstr "unittest 模块可以通过命令行运行模块、类和独立测试方法的测试。 "
256+ msgstr "unittest 模块可以通过命令行运行模块、类和独立测试方法的测试:: "
257257
258258#: ../../library/unittest.rst:167
259259msgid ""
@@ -263,7 +263,7 @@ msgstr "你可以传入模块名、类或方法名或他们的任意组合。"
263263
264264#: ../../library/unittest.rst:170
265265msgid "Test modules can be specified by file path as well::"
266- msgstr "同样的,测试模块可以通过文件路径指定。 "
266+ msgstr "同样的,测试模块可以通过文件路径指定:: "
267267
268268#: ../../library/unittest.rst:174
269269msgid ""
@@ -285,7 +285,7 @@ msgstr "在运行测试时,你可以通过添加 -v 参数获取更详细(
285285#: ../../library/unittest.rst:184
286286msgid ""
287287"When executed without arguments :ref:`unittest-test-discovery` is started::"
288- msgstr "当运行时不包含参数,开始 :ref:`unittest-test-discovery` 。 "
288+ msgstr "当运行时不包含参数,开始 :ref:`unittest-test-discovery` :: "
289289
290290#: ../../library/unittest.rst:188
291291msgid "For a list of all the command-line options::"
@@ -705,15 +705,15 @@ msgstr ""
705705
706706#: ../../library/unittest.rst:515
707707msgid "Basic skipping looks like this::"
708- msgstr "跳过测试的基本用法如下: "
708+ msgstr "跳过测试的基本用法如下:: "
709709
710710#: ../../library/unittest.rst:534
711711msgid "This is the output of running the example above in verbose mode::"
712712msgstr "在啰嗦模式下运行以上测试例子时,程序输出如下:"
713713
714714#: ../../library/unittest.rst:545
715715msgid "Classes can be skipped just like methods::"
716- msgstr "跳过测试类的写法跟跳过测试方法的写法相似: "
716+ msgstr "跳过测试类的写法跟跳过测试方法的写法相似:: "
717717
718718#: ../../library/unittest.rst:552
719719msgid ""
@@ -723,7 +723,7 @@ msgstr ":meth:`TestCase.setUp` 也可以跳过测试。可以用于所需资源
723723
724724#: ../../library/unittest.rst:555
725725msgid "Expected failures use the :func:`expectedFailure` decorator. ::"
726- msgstr "使用 :func:`expectedFailure` 装饰器表明这个测试预计失败。"
726+ msgstr "使用 :func:`expectedFailure` 装饰器表明这个测试预计失败。:: "
727727
728728#: ../../library/unittest.rst:562
729729msgid ""
@@ -792,11 +792,11 @@ msgstr ""
792792
793793#: ../../library/unittest.rst:614
794794msgid "For example, the following test::"
795- msgstr ""
795+ msgstr "例如,以下测试:: "
796796
797797#: ../../library/unittest.rst:626
798798msgid "will produce the following output::"
799- msgstr ""
799+ msgstr "可以得到以下输出:: "
800800
801801#: ../../library/unittest.rst:652
802802msgid ""
@@ -807,15 +807,15 @@ msgstr ""
807807
808808#: ../../library/unittest.rst:668
809809msgid "Classes and functions"
810- msgstr ""
810+ msgstr "类与函数 "
811811
812812#: ../../library/unittest.rst:670
813813msgid "This section describes in depth the API of :mod:`unittest`."
814- msgstr ""
814+ msgstr "本段落深入介绍了 unittest 的 API 。 "
815815
816816#: ../../library/unittest.rst:676
817817msgid "Test cases"
818- msgstr ""
818+ msgstr "测试用例 "
819819
820820#: ../../library/unittest.rst:680
821821msgid ""
@@ -883,7 +883,7 @@ msgstr ""
883883
884884#: ../../library/unittest.rst:735 ../../library/unittest.rst:750
885885msgid "See `Class and Module Fixtures`_ for more details."
886- msgstr ""
886+ msgstr "查看 `Class and Module Fixtures`_ 获取更详细的说明。 "
887887
888888#: ../../library/unittest.rst:742
889889msgid ""
@@ -932,7 +932,7 @@ msgstr ""
932932
933933#: ../../library/unittest.rst:788
934934msgid "See :ref:`subtests` for more information."
935- msgstr ""
935+ msgstr "查看 :ref:`subtests` 获取更详细的信息。 "
936936
937937#: ../../library/unittest.rst:795
938938msgid ""
0 commit comments