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

Skip to content

Commit e94c8b1

Browse files
[po] auto sync
1 parent c24fd74 commit e94c8b1

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
@@ -1913,20 +1913,23 @@ msgid ""
19131913
"This method is called unconditionally after :meth:`tearDown`, or after "
19141914
":meth:`setUp` if :meth:`setUp` raises an exception."
19151915
msgstr ""
1916-
"此方法会在 :meth:`tearDown` 之后,或者如果 :meth:`setUp` 引发了异常则会在 :meth:`setUp` 之后被调用。"
1916+
"此方法会在 :meth:`tearDown` 之后无条件地被调用,或者如果 :meth:`setUp` 引发了异常则会在 :meth:`setUp` "
1917+
"之后被调用。"
19171918

19181919
#: ../../library/unittest.rst:1454
19191920
msgid ""
19201921
"It is responsible for calling all the cleanup functions added by "
19211922
":meth:`addCleanup`. If you need cleanup functions to be called *prior* to "
19221923
":meth:`tearDown` then you can call :meth:`doCleanups` yourself."
19231924
msgstr ""
1925+
"它将负责调用由 :meth:`addCleanup` 添加的所有清理函数。 如果你需要在 :meth:`tearDown` *之前* "
1926+
"调用清理函数则可以自行调用 :meth:`doCleanups`。"
19241927

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

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

19401946
#: ../../library/unittest.rst:1472
19411947
msgid ""
19421948
"If :meth:`setUpClass` fails, meaning that :meth:`tearDownClass` is not "
19431949
"called, then any cleanup functions added will still be called."
19441950
msgstr ""
1951+
"如果 :meth:`setUpClass` 失败,即意味着 :meth:`tearDownClass` 未被调用,则已添加的任何清理函数仍将被调用。"
19451952

19461953
#: ../../library/unittest.rst:1480
19471954
msgid ""
19481955
"This method is called unconditionally after :meth:`tearDownClass`, or after "
19491956
":meth:`setUpClass` if :meth:`setUpClass` raises an exception."
19501957
msgstr ""
1958+
"此方法会在 :meth:`tearDownClass` 之后无条件地被调用,或者如果 :meth:`setUpClass` 引发了异常则会在 "
1959+
":meth:`setUpClass` 之后被调用。"
19511960

19521961
#: ../../library/unittest.rst:1483
19531962
msgid ""

0 commit comments

Comments
 (0)