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

Skip to content

Commit 2f9ef54

Browse files
[po] auto sync
1 parent d35be16 commit 2f9ef54

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

library/unittest.mock.po

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,55 +1912,60 @@ msgstr "异步迭代方法: ``__aiter__`` and ``__anext__``"
19121912

19131913
#: ../../library/unittest.mock.rst:2033
19141914
msgid "Added support for :func:`os.PathLike.__fspath__`."
1915-
msgstr ""
1915+
msgstr "增加了对 :func:`os.PathLike.__fspath__` 的支持。"
19161916

19171917
#: ../../library/unittest.mock.rst:2036
19181918
msgid ""
19191919
"Added support for ``__aenter__``, ``__aexit__``, ``__aiter__`` and "
19201920
"``__anext__``."
19211921
msgstr ""
1922+
"增加了对 ``__aenter__``, ``__aexit__``, ``__aiter__`` 和 ``__anext__`` 的支持。"
19221923

19231924
#: ../../library/unittest.mock.rst:2040
19241925
msgid ""
19251926
"The following methods exist but are *not* supported as they are either in "
19261927
"use by mock, can't be set dynamically, or can cause problems:"
1927-
msgstr ""
1928+
msgstr "下列方法均存在但是 *不受* 支持,因为它们或者被 mock 所使用,或者无法动态设置,或者可能导致问题:"
19281929

19291930
#: ../../library/unittest.mock.rst:2043
19301931
msgid "``__getattr__``, ``__setattr__``, ``__init__`` and ``__new__``"
1931-
msgstr ""
1932+
msgstr "``__getattr__``, ``__setattr__``, ``__init__`` 和 ``__new__``"
19321933

19331934
#: ../../library/unittest.mock.rst:2044
19341935
msgid ""
19351936
"``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``"
19361937
msgstr ""
1938+
"``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``"
19371939

19381940
#: ../../library/unittest.mock.rst:2049
19391941
msgid "Magic Mock"
1940-
msgstr ""
1942+
msgstr "MagicMock"
19411943

19421944
#: ../../library/unittest.mock.rst:2051
19431945
msgid ""
19441946
"There are two ``MagicMock`` variants: :class:`MagicMock` and "
19451947
":class:`NonCallableMagicMock`."
19461948
msgstr ""
1949+
"存在两个版本的 ``MagicMock``: :class:`MagicMock` 和 :class:`NonCallableMagicMock`."
19471950

19481951
#: ../../library/unittest.mock.rst:2056
19491952
msgid ""
19501953
"``MagicMock`` is a subclass of :class:`Mock` with default implementations of"
19511954
" most of the magic methods. You can use ``MagicMock`` without having to "
19521955
"configure the magic methods yourself."
19531956
msgstr ""
1957+
"``MagicMock`` 是包含了大部分魔术方法的默认实现的 :class:`Mock` 的子类。 你可以使用 ``MagicMock`` "
1958+
"而无须自行配置魔术方法。without having to configure the magic methods yourself."
19541959

19551960
#: ../../library/unittest.mock.rst:2060
19561961
msgid "The constructor parameters have the same meaning as for :class:`Mock`."
1957-
msgstr ""
1962+
msgstr "构造器形参的含义与 :class:`Mock` 的相同。"
19581963

19591964
#: ../../library/unittest.mock.rst:2062
19601965
msgid ""
19611966
"If you use the *spec* or *spec_set* arguments then *only* magic methods that"
19621967
" exist in the spec will be created."
1963-
msgstr ""
1968+
msgstr "如果你使用了 *spec* 或 *spec_set* 参数则将 *只有* 存在于 spec 中的魔术方法会被创建。"
19641969

19651970
#: ../../library/unittest.mock.rst:2068
19661971
msgid "A non-callable version of :class:`MagicMock`."

0 commit comments

Comments
 (0)