77# Jann Li <[email protected] >, 201988# Jack Wu <[email protected] >, 201999# ChenYuan <[email protected] >, 201910- # makdon <[email protected] >, 20191110# Freesand Leo <[email protected] >, 20191211# Xiao Xu <[email protected] >, 201912+ # makdon <[email protected] >, 20191313#
1414#, fuzzy
1515msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818"Report-Msgid-Bugs-To : \n "
1919"POT-Creation-Date : 2019-03-30 11:02+0900\n "
2020"PO-Revision-Date : 2017-02-16 23:33+0000\n "
21- "
Last-Translator :
Xiao Xu <[email protected] >, 2019\n"
21+ "
Last-Translator :
makdon <[email protected] >, 2019\n"
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2323"MIME-Version : 1.0\n "
2424"Content-Type : text/plain; charset=UTF-8\n "
@@ -335,27 +335,30 @@ msgid ""
335335"Only run test methods and classes that match the pattern or substring. This "
336336"option may be used multiple times, in which case all test cases that match "
337337"of the given patterns are included."
338- msgstr ""
338+ msgstr "只运行匹配模式或子串的测试方法和类。可以多次使用这个选项,以便包含匹配子串的所有测试用例。 "
339339
340340#: ../../library/unittest.rst:228
341341msgid ""
342342"Patterns that contain a wildcard character (``*``) are matched against the "
343343"test name using :meth:`fnmatch.fnmatchcase`; otherwise simple case-sensitive"
344344" substring matching is used."
345- msgstr ""
345+ msgstr "包含通配符(*)的模式使用 :meth:`fnmatch.fnmatchcase` 对测试名称进行匹配。另外,该匹配是大小写敏感的。 "
346346
347347#: ../../library/unittest.rst:232
348348msgid ""
349349"Patterns are matched against the fully qualified test method name as "
350350"imported by the test loader."
351- msgstr ""
351+ msgstr "模式对测试加载器导入的测试方法全名进行匹配。 "
352352
353353#: ../../library/unittest.rst:235
354354msgid ""
355355"For example, ``-k foo`` matches ``foo_tests.SomeTest.test_something``, "
356356"``bar_tests.SomeTest.test_foo``, but not "
357357"``bar_tests.FooTest.test_something``."
358358msgstr ""
359+ "例如,``-k foo`` 可以匹配到 ``foo_tests.SomeTest.test_something`` 和 "
360+ "``bar_tests.SomeTest.test_foo`` ,但是不能匹配到 "
361+ "``bar_tests.FooTest.test_something`` 。"
359362
360363#: ../../library/unittest.rst:240
361364msgid "Show local variables in tracebacks."
@@ -377,11 +380,11 @@ msgstr "命令行选项 ``-k`` 。"
377380msgid ""
378381"The command line can also be used for test discovery, for running all of the"
379382" tests in a project or just a subset."
380- msgstr ""
383+ msgstr "命令行亦可用于探索性测试,以运行一个项目的所有测试或其子集。 "
381384
382385#: ../../library/unittest.rst:258
383386msgid "Test Discovery"
384- msgstr ""
387+ msgstr "探索性测试 "
385388
386389#: ../../library/unittest.rst:262
387390msgid ""
@@ -392,39 +395,44 @@ msgid ""
392395" (this means that their filenames must be valid :ref:`identifiers "
393396"<identifiers>`)."
394397msgstr ""
398+ "Unittest支持简单的测试搜索。若需要使用探索性测试,所有的测试文件必须是 :ref:`modules <tut-modules>` 或 "
399+ ":ref:`packages <tut-packages>` (包括 :term:`namespace packages <namespace "
400+ "package>` )并可从项目根目录导入(即它们的文件名必须是有效的 :ref:`identifiers <identifiers>` 。"
395401
396402#: ../../library/unittest.rst:269
397403msgid ""
398404"Test discovery is implemented in :meth:`TestLoader.discover`, but can also "
399405"be used from the command line. The basic command-line usage is::"
400- msgstr ""
406+ msgstr "探索性测试在 :meth:`TestLoader.discover` 中实现,但也可以通过命令行使用。它在命令行中的基本用法如下: "
401407
402408#: ../../library/unittest.rst:277
403409msgid ""
404410"As a shortcut, ``python -m unittest`` is the equivalent of ``python -m "
405411"unittest discover``. If you want to pass arguments to test discovery the "
406412"``discover`` sub-command must be used explicitly."
407413msgstr ""
414+ "方便起见, ``python -m unittest`` 与 ``python -m unittest discover`` "
415+ "等价。如果你需要向探索性测试传入参数,必须显式地使用 ``discover`` 子命令。"
408416
409417#: ../../library/unittest.rst:281
410418msgid "The ``discover`` sub-command has the following options:"
411- msgstr ""
419+ msgstr "``discover`` 有以下选项: "
412420
413421#: ../../library/unittest.rst:287
414422msgid "Verbose output"
415- msgstr ""
423+ msgstr "更详细地输出结果。 "
416424
417425#: ../../library/unittest.rst:291
418426msgid "Directory to start discovery (``.`` default)"
419- msgstr ""
427+ msgstr "开始进行搜索的目录(默认值为当前目录 ``.`` )。 "
420428
421429#: ../../library/unittest.rst:295
422430msgid "Pattern to match test files (``test*.py`` default)"
423- msgstr ""
431+ msgstr "用于匹配测试文件的模式(默认为 ``test*.py`` )。 "
424432
425433#: ../../library/unittest.rst:299
426434msgid "Top level directory of project (defaults to start directory)"
427- msgstr ""
435+ msgstr "指定项目的最上层目录(通常为开始时所在目录)。 "
428436
429437#: ../../library/unittest.rst:301
430438msgid ""
0 commit comments