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

Skip to content

Commit bd132d8

Browse files
[po] auto sync
1 parent 3a70c58 commit bd132d8

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

library/unittest.po

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,7 +2393,7 @@ msgstr ""
23932393

23942394
#: ../../library/unittest.rst:1760
23952395
msgid "Support for ``load_tests`` added."
2396-
msgstr ""
2396+
msgstr "添加了对 ``load_tests`` 的支持。"
23972397

23982398
#: ../../library/unittest.rst:1763
23992399
msgid ""
@@ -2402,10 +2402,12 @@ msgid ""
24022402
"compatibility. The method also now accepts a keyword-only argument "
24032403
"*pattern* which is passed to ``load_tests`` as the third argument."
24042404
msgstr ""
2405+
"未写入文档的非官方 *use_load_tests* 默认参数已被弃用并忽略,但是它仍然被接受以便向下兼容。 此方法现在还接受一个仅限关键字参数 "
2406+
"*pattern*,它会被作为传给 ``load_tests`` 的第三个参数。"
24052407

24062408
#: ../../library/unittest.rst:1772
24072409
msgid "Return a suite of all test cases given a string specifier."
2408-
msgstr ""
2410+
msgstr "返回由给出了字符串形式规格描述的所有测试用例组成的测试套件。"
24092411

24102412
#: ../../library/unittest.rst:1774
24112413
msgid ""
@@ -2417,6 +2419,10 @@ msgid ""
24172419
"will be picked up as \"a test method within a test case class\", rather than"
24182420
" \"a callable object\"."
24192421
msgstr ""
2422+
"描述名称 *name* 是一个“带点号的名称”,它可以被解析为一个模块、一个测试用例类、一个测试用例类内部的测试方法、一个 "
2423+
":class:`TestSuite` 实例,或者一个返回 :class:`TestCase` 或 :class:`TestSuite` "
2424+
"实例的可调用对象。 "
2425+
"这些检查将按在此列出的顺序执行;也就是说,一个可能的测试用例类上的方法将作为“一个测试用例内部的测试方法”而非作为“一个可调用对象”被选定。"
24202426

24212427
#: ../../library/unittest.rst:1782
24222428
msgid ""
@@ -2430,6 +2436,11 @@ msgid ""
24302436
"can refer to modules and packages which have not been imported; they will be"
24312437
" imported as a side-effect."
24322438
msgstr ""
2439+
"举例来说,如果你有一个模块 :mod:`SampleTests`,其中包含一个派生自 :class:`TestCase` 的类 "
2440+
":class:`SampleTestCase`,其中包含三个测试方法 (:meth:`test_one`, :meth:`test_two` 和 "
2441+
":meth:`test_three`)。 则描述名称 ``'SampleTests.SampleTestCase'`` "
2442+
"将使此方法返回一个测试套件,它将运行全部三个测试方法。 使用描述名称 ``'SampleTests.SampleTestCase.test_two'``"
2443+
" 将使它返回一个测试套件,它将仅运行 :meth:`test_two` 测试方法。 描述名称可以指向尚未被导入的模块和包;它们将作为附带影响被导入。"
24332444

24342445
#: ../../library/unittest.rst:1792
24352446
msgid "The method optionally resolves *name* relative to the given *module*."

0 commit comments

Comments
 (0)