@@ -358,7 +358,7 @@ msgstr ""
358358
359359#: ../../library/unittest.rst:240
360360msgid "Show local variables in tracebacks."
361- msgstr ""
361+ msgstr "在回溯中显示局部变量。 "
362362
363363#: ../../library/unittest.rst:242
364364msgid "The command-line options ``-b``, ``-c`` and ``-f`` were added."
@@ -611,31 +611,35 @@ msgstr ""
611611
612612#: ../../library/unittest.rst:463
613613msgid "Re-using old test code"
614- msgstr ""
614+ msgstr "复用已有的测试代码 "
615615
616616#: ../../library/unittest.rst:465
617617msgid ""
618618"Some users will find that they have existing test code that they would like "
619619"to run from :mod:`unittest`, without converting every old test function to a"
620620" :class:`TestCase` subclass."
621621msgstr ""
622+ "一些用户希望直接使用:mod:`unittest` 运行已有的测试代码,而不需要把已有的每个测试函数转化为一个 :class:`TestCase` "
623+ "的子类。"
622624
623625#: ../../library/unittest.rst:469
624626msgid ""
625627"For this reason, :mod:`unittest` provides a :class:`FunctionTestCase` class."
626628" This subclass of :class:`TestCase` can be used to wrap an existing test "
627629"function. Set-up and tear-down functions can also be provided."
628630msgstr ""
631+ "因此, :mod:`unittest` 提供 :class:`FunctionTestCase` 类。这个 :class:`TestCase` "
632+ "的子类可用于打包已有的测试函数,并支持设置前置与后置函数。"
629633
630634#: ../../library/unittest.rst:473
631635msgid "Given the following test function::"
632- msgstr ""
636+ msgstr "假定有一个测试函数: "
633637
634638#: ../../library/unittest.rst:480
635639msgid ""
636640"one can create an equivalent test case instance as follows, with optional "
637641"set-up and tear-down methods::"
638- msgstr ""
642+ msgstr "可以创建等价的测试用例如下,其中前置和后置方法是可选的。 "
639643
640644#: ../../library/unittest.rst:489
641645msgid ""
0 commit comments