Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e00c80 commit c169a44Copy full SHA for c169a44
1 file changed
library/test.po
@@ -743,6 +743,10 @@ msgid ""
743
"specified filters the test fails. To disable the first of these checks, set"
744
" *quiet* to ``True``."
745
msgstr ""
746
+"``check_warnings`` 接受 ``(\"message regexp\", WarningCategory)`` 形式的 2 "
747
+"元组作为位置参数。 如果提供了一个或多个 *filters*,或者如果可选的关键字参数 *quiet* 为 "
748
+"``False``,则它会检查确认警告是符合预期的:每个已指定的过滤器必须匹配至少一个被包围的代码或测试失败时引发的警告,并且如果有任何未能匹配已指定过滤器的警告被引发则测试将失败。"
749
+" 要禁用这些检查中的第一项,请将 *quiet* 设为 ``True``。"
750
751
#: ../../library/test.rst:610
752
msgid "If no arguments are specified, it defaults to::"
0 commit comments