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

Skip to content

Commit 91aeae0

Browse files
[po] auto sync
1 parent 33a7264 commit 91aeae0

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

library/test.po

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,11 @@ msgstr ""
642642

643643
#: ../../library/test.rst:548
644644
msgid "If no arguments are specified, it defaults to::"
645-
msgstr ""
645+
msgstr "如果未指定任何参数,则默认为::"
646646

647647
#: ../../library/test.rst:552
648648
msgid "In this case all warnings are caught and no errors are raised."
649-
msgstr ""
649+
msgstr "在此情况下所有警告都会被捕获而不会引发任何错误。"
650650

651651
#: ../../library/test.rst:554
652652
msgid ""
@@ -659,38 +659,42 @@ msgid ""
659659
"that would otherwise be expected on an object representing a warning will "
660660
"return ``None``."
661661
msgstr ""
662+
"在进入该上下文管理器时,将返回一个 :class:`WarningRecorder` 实例。 来自 "
663+
":func:`~warnings.catch_warnings` 的下层警告列表可通过该记录器对象的 :attr:`warnings` 属性来访问。 "
664+
"作为一个便捷方式,该对象中代表最近的警告的属性也可通过该记录器对象来直接访问(参见以下示例)。 "
665+
"如果未引发任何警告,则在其他情况下预期代表一个警告的任何对象属性都将返回 ``None``。"
662666

663667
#: ../../library/test.rst:563
664668
msgid ""
665669
"The recorder object also has a :meth:`reset` method, which clears the "
666670
"warnings list."
667-
msgstr ""
671+
msgstr "该记录器对象还有一个 :meth:`reset` 方法,该方法会清空警告列表。"
668672

669673
#: ../../library/test.rst:566
670674
msgid "The context manager is designed to be used like this::"
671-
msgstr ""
675+
msgstr "该上下文管理器被设计为像这样来使用::"
672676

673677
#: ../../library/test.rst:573
674678
msgid ""
675679
"In this case if either warning was not raised, or some other warning was "
676680
"raised, :func:`check_warnings` would raise an error."
677-
msgstr ""
681+
msgstr "在此情况下如果两个警告都未被引发,或是引发了其他的警告,则 :func:`check_warnings` 将会引发一个错误。"
678682

679683
#: ../../library/test.rst:576
680684
msgid ""
681685
"When a test needs to look more deeply into the warnings, rather than just "
682686
"checking whether or not they occurred, code like this can be used::"
683-
msgstr ""
687+
msgstr "当一个测试需要更深入地查看这些警告,而不是仅仅检查它们是否发生时,可以使用这样的代码::"
684688

685689
#: ../../library/test.rst:590
686690
msgid ""
687691
"Here all warnings will be caught, and the test code tests the captured "
688692
"warnings directly."
689-
msgstr ""
693+
msgstr "在这里所有的警告都将被捕获,而测试代码会直接测试被捕获的警告。"
690694

691695
#: ../../library/test.rst:593
692696
msgid "New optional arguments *filters* and *quiet*."
693-
msgstr ""
697+
msgstr "新增可选参数 *filters* 和 *quiet*。"
694698

695699
#: ../../library/test.rst:599
696700
msgid ""
@@ -1542,7 +1546,7 @@ msgstr "尝试对单个已存储值 (*dv*) 与所提供的值 (*v*) 进行匹配
15421546
msgid ""
15431547
"Class used to record warnings for unit tests. See documentation of "
15441548
":func:`check_warnings` above for more details."
1545-
msgstr ""
1549+
msgstr "用于为单元测试记录警告的类。 请参阅以上 :func:`check_warnings` 的文档来了解详情。"
15461550

15471551
#: ../../library/test.rst:1385
15481552
msgid "Run *test* and return the result."

0 commit comments

Comments
 (0)