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

Skip to content

Commit a91ef35

Browse files
[po] auto sync
1 parent a47ba23 commit a91ef35

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

library/unittest.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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*."
13671367
msgstr ""
1368+
"测试当 *callable* 附带任何同时被传给 :meth:`assertWarns` 的位置或关键字参数被调用时是否触发了警告。 如果触发了 "
1369+
"*warning* 则测试通过,否则测试失败。 引发任何异常则报错。 要捕获一组警告中的任何一个,可将包含多个警告类的元组作为 *warnings* "
1370+
"传入。"
13681371

13691372
#: ../../library/unittest.rst:1034
13701373
msgid ""
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
13771380
msgid ""

0 commit comments

Comments
 (0)