@@ -8,7 +8,7 @@ msgstr ""
88"Project-Id-Version : Python 3.12\n "
99"Report-Msgid-Bugs-To : \n "
1010"POT-Creation-Date : 2023-10-20 00:03+0000\n "
11- "PO-Revision-Date : 2023-09-09 23:07 +0800\n "
11+ "PO-Revision-Date : 2023-11-23 21:46 +0800\n "
1212"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1414"tw)\n "
@@ -17,7 +17,7 @@ msgstr ""
1717"Content-Type : text/plain; charset=UTF-8\n "
1818"Content-Transfer-Encoding : 8bit\n "
1919"Plural-Forms : nplurals=1; plural=0;\n "
20- "X-Generator : Poedit 3.4\n "
20+ "X-Generator : Poedit 3.4.1 \n "
2121
2222#: ../../library/unittest.mock.rst:3
2323msgid ":mod:`unittest.mock` --- mock object library"
@@ -469,9 +469,9 @@ msgid ""
469469"mocks and the return value mock (if any) are reset as well."
470470msgstr ""
471471"這在你想要進行一系列重複使用同一物件的斷言時非常有用。請注意,預設情況下,:"
472- "meth:`reset_mock` *不會*\\ 清除回傳值、:attr:`side_effect` 或使用普通賦值設定的 "
473- "任何子屬性 。如果你想要重置 *return_value* 或 :attr:`side_effect`,則將相應的 "
474- "參數設置為 ``True``。Child mock 和回傳值 mock(如果有的話)也會被重置。"
472+ "meth:`reset_mock` *不會*\\ 清除回傳值、:attr:`side_effect` 或使用普通賦值設定 "
473+ "的任何子屬性 。如果你想要重置 *return_value* 或 :attr:`side_effect`,則將相應 "
474+ "的參數設置為 ``True``。Child mock 和回傳值 mock(如果有的話)也會被重置。"
475475
476476#: ../../library/unittest.mock.rst:420
477477msgid "*return_value*, and :attr:`side_effect` are keyword-only arguments."
@@ -641,9 +641,9 @@ msgid ""
641641"second member, which can also be accessed through the ``kwargs`` property, "
642642"is any keyword arguments (or an empty dictionary)."
643643msgstr ""
644- "這會是 ``None``(如果 mock 尚未被呼叫),或是 mock 上次被呼叫時使用的引數。這 "
645- "將以元組的形式呈現 :第一個成員 (member),其可以通過 ``args`` 屬性訪問,是 "
646- "mock 被呼叫時傳遞的所有有序引數(或一個空元組)。第二個成員,其可以通過 "
644+ "這會是 ``None``\\ (如果 mock 尚未被呼叫),或是 mock 上次被呼叫時使用的引 "
645+ "數。這將以元組的形式呈現 :第一個成員 (member),其可以通過 ``args`` 屬性訪問,"
646+ "是 mock 被呼叫時傳遞的所有有序引數(或一個空元組)。第二個成員,其可以通過 "
647647"``kwargs`` 屬性訪問,是所有關鍵字引數(或一個空字典)。"
648648
649649#: ../../library/unittest.mock.rst:646
@@ -689,7 +689,7 @@ msgid ""
689689"and attributes, and *their* methods and attributes:"
690690msgstr ""
691691"除了追蹤對自身的呼叫之外,mock 還會追蹤對方法和屬性的呼降,以及*它們(這些方"
692- "法和屬性)*的方法和屬性:"
692+ "法和屬性)*\\ 的方法和屬性:"
693693
694694#: ../../library/unittest.mock.rst:692
695695msgid ""
@@ -797,9 +797,9 @@ msgid ""
797797"mock. Therefore, it can match the actual call's arguments regardless of "
798798"whether they were passed positionally or by name::"
799799msgstr ""
800- "在匹配對 mock 的呼叫時,使用 *spec*(或 *spec_set*)建立的可呼叫 mock 將會內 "
801- "省規格物件的簽名 (signature)。因此,它可以匹配實際呼叫的引數,無論它們是按位 "
802- "置傳遞還是按名稱傳遞 :\n"
800+ "在匹配對 mock 的呼叫時,使用 *spec*\\ (或 *spec_set*\\ )建立的可呼叫 mock "
801+ "將會內省規格物件的簽名 (signature)。因此,它可以匹配實際呼叫的引數,無論它們 "
802+ "是按位置傳遞還是按名稱傳遞 :\n"
803803"\n"
804804"::"
805805
0 commit comments