@@ -7,7 +7,7 @@ msgstr ""
7
7
"Project-Id-Version :Python 3.12\n "
8
8
"Report-Msgid-Bugs-To :\n "
9
9
"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 "
11
11
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
13
13
"tw)\n "
@@ -1352,8 +1352,8 @@ msgid ""
1352
1352
"\" as\" then the patched object will be bound to the name after the\" as\" ; "
1353
1353
"very useful if :func:`patch` is creating a mock object for you."
1354
1354
msgstr ""
1355
- "透過 with 陳述式,Patch 可以做為情境管理器使用。這裡, patch 適用於 with陳述 "
1356
- "式之後的縮排區塊 。 如果你使用“as” ,則被 patch 的物件將被綁定到“as” 後面的名"
1355
+ "透過 with 陳述式,Patch 可以做為情境管理器使用。 patch 適用於 with陳述式之後 "
1356
+ "的縮排區塊 。 如果你使用\" as \" ,則被 patch 的物件將被綁定到\" as \" 後面的名"
1357
1357
"稱; 如果 :func:`patch` 正在為你建立一個 mock 物件,這會非常有用。"
1358
1358
1359
1359
#: ../../library/unittest.mock.rst:1408
@@ -1388,23 +1388,23 @@ msgid ""
1388
1388
"`~Mock.return_value` of the mock that will be used."
1389
1389
msgstr ""
1390
1390
"Patch 一個類別會以 :class:`MagicMock` *實例*取代該類別。 如果該類別在被測試的"
1391
- "程式碼中實例化,那麼它將是會被使用的 mock 的:attr:`~Mock.return_value`。"
1391
+ "程式碼中實例化,那麼它將是會被使用的 mock 的 :attr:`~Mock.return_value`。"
1392
1392
1393
1393
#: ../../library/unittest.mock.rst:1429
1394
1394
msgid ""
1395
1395
"If the class is instantiated multiple times you could use :attr:`~Mock."
1396
1396
"side_effect` to return a new mock each time. Alternatively you can set the "
1397
1397
"*return_value* to be anything you want."
1398
1398
msgstr ""
1399
- "如果該類別被實例化多次,你可以使用:attr:`~Mock.side_effect` 來每次回傳一個新"
1399
+ "如果該類別被實例化多次,你可以使用 :attr:`~Mock.side_effect` 來每次回傳一個新"
1400
1400
"的 mock。 或者你可以將 *return_value* 設定成你想要的任何值。"
1401
1401
1402
1402
#: ../../library/unittest.mock.rst:1433
1403
1403
msgid ""
1404
1404
"To configure return values on methods of *instances* on the patched class "
1405
1405
"you must do this on the :attr:`return_value`. For example::"
1406
1406
msgstr ""
1407
- "若要配置被 patch 的類別的*實例*方法的回傳值,你必須在 :attr:`return_value`上"
1407
+ "若要配置被 patch 的類別的*實例*方法的回傳值,你必須在 :attr:`return_value` 上"
1408
1408
"進行配置。 例如: ::"
1409
1409
1410
1410
#: ../../library/unittest.mock.rst:1447