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

Skip to content

Commit 5ef8254

Browse files
[po] auto sync
1 parent e94c8b1 commit 5ef8254

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

library/unittest.po

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,18 +1964,20 @@ msgid ""
19641964
":meth:`addClassCleanup`. If you need cleanup functions to be called *prior* "
19651965
"to :meth:`tearDownClass` then you can call :meth:`doClassCleanups` yourself."
19661966
msgstr ""
1967+
"它将负责访问由 :meth:`addClassCleanup` 添加的所有清理函数。 如果你需要在 :meth:`tearDownClass` *之前*"
1968+
" 调用清理函数则可以自行调用 :meth:`doClassCleanups`。"
19671969

19681970
#: ../../library/unittest.rst:1488
19691971
msgid ""
19701972
":meth:`doClassCleanups` pops methods off the stack of cleanup functions one "
19711973
"at a time, so it can be called at any time."
1972-
msgstr ""
1974+
msgstr ":meth:`doClassCleanups` 每次会弹出清理函数栈中的一个方法,因此它在任何时候被调用。"
19731975

19741976
#: ../../library/unittest.rst:1496
19751977
msgid ""
19761978
"This class provides an API similar to :class:`TestCase` and also accepts "
19771979
"coroutines as test functions."
1978-
msgstr ""
1980+
msgstr "这个类提供了与 :class:`TestCase` 类似的 API 并也接受协程作为测试函数。"
19791981

19801982
#: ../../library/unittest.rst:1503
19811983
msgid ""
@@ -1985,6 +1987,9 @@ msgid ""
19851987
" this method will be considered an error rather than a test failure. The "
19861988
"default implementation does nothing."
19871989
msgstr ""
1990+
"为测试预备而调用的方法。 此方法会在 :meth:`setUp` 之后被调用。 此方法将在调用测试方法之前立即被调用;除了 "
1991+
":exc:`AssertionError` 或 :exc:`SkipTest`,此方法所引发的任何异常都将被视为错误而非测试失败。 "
1992+
"默认的实现将不做任何事情。"
19881993

19891994
#: ../../library/unittest.rst:1511
19901995
msgid ""
@@ -1998,6 +2003,10 @@ msgid ""
19982003
"method will only be called if the :meth:`asyncSetUp` succeeds, regardless of"
19992004
" the outcome of the test method. The default implementation does nothing."
20002005
msgstr ""
2006+
"在测试方法被调用并记录结果之后立即被调用的方法。 此方法会在 :meth:`tearDown` 之前被调用。 "
2007+
"此方法即使在测试方法引发异常时仍会被调用,因此子类中的实现将需要特别注意检查内部状态。 除 :exc:`AssertionError` 或 "
2008+
":exc:`SkipTest` 外,此方法所引发的任何异常都将被视为额外的错误而非测试失败(因而会增加总计错误报告数)。 此方法将只在 "
2009+
":meth:`asyncSetUp` 成功执行时被调用,无论测试方法的结果如何。 默认的实现将不做任何事情。"
20012010

20022011
#: ../../library/unittest.rst:1523
20032012
msgid ""

0 commit comments

Comments
 (0)