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 f5e057b commit 33a7264Copy full SHA for 33a7264
1 file changed
library/test.po
@@ -635,6 +635,10 @@ msgid ""
635
"specified filters the test fails. To disable the first of these checks, set"
636
" *quiet* to ``True``."
637
msgstr ""
638
+"``check_warnings`` 接受 ``(\"message regexp\", WarningCategory)`` 形式的 2 "
639
+"元组作为位置参数。 如果提供了一个或多个 *filters*,或者如果可选的关键字参数 *quiet* 为 "
640
+"``False``,则它会检查确认警告是符合预期的:每个已指定的过滤器必须匹配至少一个被包围的代码或测试失败时引发的警告,并且如果有任何未能匹配已指定过滤器的警告被引发则测试将失败。"
641
+" 要禁用这些检查中的第一项,请将 *quiet* 设为 ``True``。"
642
643
#: ../../library/test.rst:548
644
msgid "If no arguments are specified, it defaults to::"
0 commit comments