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

Skip to content

Commit b1cd67e

Browse files
[po] auto sync
1 parent 64be800 commit b1cd67e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

library/unittest.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,12 +1959,14 @@ msgid ""
19591959
":meth:`addCleanup`. If you need cleanup functions to be called *prior* to "
19601960
":meth:`tearDown` then you can call :meth:`doCleanups` yourself."
19611961
msgstr ""
1962+
"它将负责调用由 :meth:`addCleanup` 添加的所有清理函数。 如果你需要在 :meth:`tearDown` *之前* "
1963+
"调用清理函数则可以自行调用 :meth:`doCleanups`。"
19621964

19631965
#: ../../library/unittest.rst:1480
19641966
msgid ""
19651967
":meth:`doCleanups` pops methods off the stack of cleanup functions one at a "
19661968
"time, so it can be called at any time."
1967-
msgstr ""
1969+
msgstr ":meth:`doCleanups` 每次会弹出清理函数栈中的一个方法,因此它可以在任何时候被调用。"
19681970

19691971
#: ../../library/unittest.rst:1487
19701972
msgid ""
@@ -1974,18 +1976,24 @@ msgid ""
19741976
"called with any arguments and keyword arguments passed into "
19751977
":meth:`addClassCleanup` when they are added."
19761978
msgstr ""
1979+
"在Add a function to be called after :meth:`tearDownClass` "
1980+
"之后添加了一个要调用的函数来清理测试类运行期间所使用的资源。 函数将按它们被添加的相反顺序被调用 (:abbr:`LIFO (last-in, "
1981+
"first-out)`)。 它们在调用时将附带它们被添加时传给 :meth:`addClassCleanup` 的任何参数和关键字参数。"
19771982

19781983
#: ../../library/unittest.rst:1493
19791984
msgid ""
19801985
"If :meth:`setUpClass` fails, meaning that :meth:`tearDownClass` is not "
19811986
"called, then any cleanup functions added will still be called."
19821987
msgstr ""
1988+
"如果 :meth:`setUpClass` 失败,即意味着 :meth:`tearDownClass` 未被调用,则已添加的任何清理函数仍将被调用。"
19831989

19841990
#: ../../library/unittest.rst:1501
19851991
msgid ""
19861992
"This method is called unconditionally after :meth:`tearDownClass`, or after "
19871993
":meth:`setUpClass` if :meth:`setUpClass` raises an exception."
19881994
msgstr ""
1995+
"此方法会在 :meth:`tearDownClass` 之后无条件地被调用,或者如果 :meth:`setUpClass` 引发了异常则会在 "
1996+
":meth:`setUpClass` 之后被调用。"
19891997

19901998
#: ../../library/unittest.rst:1504
19911999
msgid ""

0 commit comments

Comments
 (0)