@@ -2122,21 +2122,23 @@ msgstr "``__format__``"
21222122
21232123#: ../../library/unittest.mock.rst:2163
21242124msgid "``__get__``, ``__set__`` and ``__delete__``"
2125- msgstr ""
2125+ msgstr "``__get__``, ``__set__`` 和 ``__delete__`` "
21262126
21272127#: ../../library/unittest.mock.rst:2164
21282128msgid "``__reversed__`` and ``__missing__``"
2129- msgstr ""
2129+ msgstr "``__reversed__`` 和 ``__missing__`` "
21302130
21312131#: ../../library/unittest.mock.rst:2165
21322132msgid ""
21332133"``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``, "
21342134"``__getstate__`` and ``__setstate__``"
21352135msgstr ""
2136+ "``__reduce__``, ``__reduce_ex__``, ``__getinitargs__``, ``__getnewargs__``, "
2137+ "``__getstate__`` 和 ``__setstate__``"
21362138
21372139#: ../../library/unittest.mock.rst:2167
21382140msgid "``__getformat__`` and ``__setformat__``"
2139- msgstr ""
2141+ msgstr "``__getformat__`` 和 ``__setformat__`` "
21402142
21412143#: ../../library/unittest.mock.rst:2171
21422144msgid ""
@@ -2145,33 +2147,36 @@ msgid ""
21452147"supported protocol methods should work with all supported versions of "
21462148"Python."
21472149msgstr ""
2150+ "魔术方法 *应当* 是在类中而不是在实例中查找。 不同的 Python 版本对这个规则的应用并不一致。 受支持的协议方法应当适用于所有受支持的 "
2151+ "Python 版本。"
21482152
21492153#: ../../library/unittest.mock.rst:2175
21502154msgid ""
21512155"The function is basically hooked up to the class, but each ``Mock`` instance"
21522156" is kept isolated from the others."
2153- msgstr ""
2157+ msgstr "该函数基本上是与类挂钩的,但每个 ``Mock`` 实例都会与其他实例保持隔离。 "
21542158
21552159#: ../../library/unittest.mock.rst:2180
21562160msgid "Helpers"
2157- msgstr ""
2161+ msgstr "辅助对象 "
21582162
21592163#: ../../library/unittest.mock.rst:2183
21602164msgid "sentinel"
2161- msgstr ""
2165+ msgstr "sentinel "
21622166
21632167#: ../../library/unittest.mock.rst:2187
21642168msgid ""
21652169"The ``sentinel`` object provides a convenient way of providing unique "
21662170"objects for your tests."
2167- msgstr ""
2171+ msgstr "``sentinel`` 对象提供了一种为你的测试提供独特对象的便捷方式。 "
21682172
21692173#: ../../library/unittest.mock.rst:2190
21702174msgid ""
21712175"Attributes are created on demand when you access them by name. Accessing the"
21722176" same attribute will always return the same object. The objects returned "
21732177"have a sensible repr so that test failure messages are readable."
21742178msgstr ""
2179+ "属性是在你通过名称访问它们时按需创建的。 访问相同的属性将始终返回相同的对象。 返回的对象会有一个合理的 repr 以使测试失败消息易于理解。"
21752180
21762181#: ../../library/unittest.mock.rst:2194
21772182msgid ""
0 commit comments