File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1365,13 +1365,16 @@ msgid ""
13651365"exception is an error. To catch any of a group of warnings, a tuple "
13661366"containing the warning classes may be passed as *warnings*."
13671367msgstr ""
1368+ "测试当 *callable* 附带任何同时被传给 :meth:`assertWarns` 的位置或关键字参数被调用时是否触发了警告。 如果触发了 "
1369+ "*warning* 则测试通过,否则测试失败。 引发任何异常则报错。 要捕获一组警告中的任何一个,可将包含多个警告类的元组作为 *warnings* "
1370+ "传入。"
13681371
13691372#: ../../library/unittest.rst:1034
13701373msgid ""
13711374"If only the *warning* and possibly the *msg* arguments are given, return a "
13721375"context manager so that the code under test can be written inline rather "
13731376"than as a function::"
1374- msgstr ""
1377+ msgstr "如果只给出了 *warning* 和可能的 *msg* 参数,则返回一个上下文管理器以便被测试的代码可以被写成内联形式而不是被写成函数:: "
13751378
13761379#: ../../library/unittest.rst:1041
13771380msgid ""
You can’t perform that action at this time.
0 commit comments