@@ -7,7 +7,7 @@ msgstr ""
77"Project-Id-Version :Python 3.12\n "
88"Report-Msgid-Bugs-To :\n "
99"POT-Creation-Date :2023-12-16 00:03+0000\n "
10- "PO-Revision-Date :2024-01-11 22:02 +0800\n "
10+ "PO-Revision-Date :2024-01-11 22:08 +0800\n "
1111"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
1212"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
1313"tw)\n "
@@ -1352,8 +1352,8 @@ msgid ""
13521352"\" as\" then the patched object will be bound to the name after the\" as\" ; "
13531353"very useful if :func:`patch` is creating a mock object for you."
13541354msgstr ""
1355- "透過 with 陳述式,Patch 可以做為情境管理器使用。這裡, patch 適用於 with陳述 "
1356- "式之後的縮排區塊 。 如果你使用“as” ,則被 patch 的物件將被綁定到“as” 後面的名"
1355+ "透過 with 陳述式,Patch 可以做為情境管理器使用。 patch 適用於 with陳述式之後 "
1356+ "的縮排區塊 。 如果你使用\" as \" ,則被 patch 的物件將被綁定到\" as \" 後面的名"
13571357"稱; 如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。"
13581358
13591359#: ../../library/unittest.mock.rst:1408
@@ -1388,23 +1388,23 @@ msgid ""
13881388"`~Mock.return_value` of the mock that will be used."
13891389msgstr ""
13901390"Patch 一個類別會以 :class:`MagicMock` *實例*取代該類別。 如果該類別在被測試的"
1391- "程式碼中實例化,那麼它將是會被使用的 mock 的:attr:`~Mock.return_value`。"
1391+ "程式碼中實例化,那麼它將是會被使用的 mock 的 :attr:`~Mock.return_value`。"
13921392
13931393#: ../../library/unittest.mock.rst:1429
13941394msgid ""
13951395"If the class is instantiated multiple times you could use :attr:`~Mock."
13961396"side_effect` to return a new mock each time. Alternatively you can set the "
13971397"*return_value* to be anything you want."
13981398msgstr ""
1399- "如果該類別被實例化多次,你可以使用:attr:`~Mock.side_effect` 來每次回傳一個新"
1399+ "如果該類別被實例化多次,你可以使用 :attr:`~Mock.side_effect` 來每次回傳一個新"
14001400"的 mock。 或者你可以將 *return_value* 設定成你想要的任何值。"
14011401
14021402#: ../../library/unittest.mock.rst:1433
14031403msgid ""
14041404"To configure return values on methods of *instances* on the patched class "
14051405"you must do this on the :attr:`return_value`. For example::"
14061406msgstr ""
1407- "若要配置被 patch 的類別的*實例*方法的回傳值,你必須在 :attr:`return_value`上"
1407+ "若要配置被 patch 的類別的*實例*方法的回傳值,你必須在 :attr:`return_value` 上"
14081408"進行配置。 例如: ::"
14091409
14101410#: ../../library/unittest.mock.rst:1447