Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccfec6b

Browse files
committed
[po] auto sync bot
1 parent 527402d commit ccfec6b

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

library/unittest.po

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
# Jann Li <[email protected]>, 2019
88
# Jack Wu <[email protected]>, 2019
99
# ChenYuan <[email protected]>, 2019
10-
# makdon <[email protected]>, 2019
1110
# Freesand Leo <[email protected]>, 2019
1211
# Xiao Xu <[email protected]>, 2019
12+
# makdon <[email protected]>, 2019
1313
#
1414
#, fuzzy
1515
msgid ""
@@ -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
341341
msgid ""
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
348348
msgid ""
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
354354
msgid ""
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``."
358358
msgstr ""
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
361364
msgid "Show local variables in tracebacks."
@@ -377,11 +380,11 @@ msgstr "命令行选项 ``-k`` 。"
377380
msgid ""
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
383386
msgid "Test Discovery"
384-
msgstr ""
387+
msgstr "探索性测试"
385388

386389
#: ../../library/unittest.rst:262
387390
msgid ""
@@ -392,39 +395,44 @@ msgid ""
392395
" (this means that their filenames must be valid :ref:`identifiers "
393396
"<identifiers>`)."
394397
msgstr ""
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
397403
msgid ""
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
403409
msgid ""
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."
407413
msgstr ""
414+
"方便起见, ``python -m unittest`` 与 ``python -m unittest discover`` "
415+
"等价。如果你需要向探索性测试传入参数,必须显式地使用 ``discover`` 子命令。"
408416

409417
#: ../../library/unittest.rst:281
410418
msgid "The ``discover`` sub-command has the following options:"
411-
msgstr ""
419+
msgstr "``discover`` 有以下选项:"
412420

413421
#: ../../library/unittest.rst:287
414422
msgid "Verbose output"
415-
msgstr ""
423+
msgstr "更详细地输出结果。"
416424

417425
#: ../../library/unittest.rst:291
418426
msgid "Directory to start discovery (``.`` default)"
419-
msgstr ""
427+
msgstr "开始进行搜索的目录(默认值为当前目录 ``.`` )。"
420428

421429
#: ../../library/unittest.rst:295
422430
msgid "Pattern to match test files (``test*.py`` default)"
423-
msgstr ""
431+
msgstr "用于匹配测试文件的模式(默认为 ``test*.py`` )。"
424432

425433
#: ../../library/unittest.rst:299
426434
msgid "Top level directory of project (defaults to start directory)"
427-
msgstr ""
435+
msgstr "指定项目的最上层目录(通常为开始时所在目录)。"
428436

429437
#: ../../library/unittest.rst:301
430438
msgid ""

0 commit comments

Comments
 (0)