8000 [po] auto sync · python/python-docs-zh-cn@286dce2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 286dce2

Browse files
[po] auto sync
1 parent b93abbd commit 286dce2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.94%", "updated_at": "2024-03-08T06:25:43Z"}
1+
{"translation": "91.95%", "updated_at": "2024-03-08T07:23:29Z"}

whatsnew/3.5.po

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2992,13 +2992,20 @@ msgid ""
29922992
" match the default pattern. (Contributed by Robert Collins and Barry A. "
29932993
"Warsaw in :issue:`16662`.)"
29942994
msgstr ""
2995+
"现在 :meth:`TestLoader.loadTestsFromModule() "
2996+
"<unittest.TestLoader.loadTestsFromModule>` 方法可接受仅限关键字参数 *pattern*,它将作为传给 "
2997+
"``load_tests`` 的第三个参数。 找到的包无论其路径是否匹配 *pattern* 都会针对 ``load_tests`` "
2998+
"进行检查,因为包名不可能与默认模式相匹配。 (由 Robert Collins 和 Barry A. Warsaw 在 :issue:`16662` "
2999+
"中贡献。)"
29953000

29963001
#: ../../whatsnew/3.5.rst:1993
29973002
msgid ""
29983003
"Unittest discovery errors now are exposed in the :data:`TestLoader.errors "
29993004
"<unittest.TestLoader.errors>` attribute of the :class:`~unittest.TestLoader`"
30003005
" instance. (Contributed by Robert Collins in :issue:`19746`.)"
30013006
msgstr ""
3007+
"单元测试发现错误现在将会暴露为 :class:`~unittest.TestLoader` 的 :data:`TestLoader.errors "
3008+
"<unittest.TestLoader.errors>` 属性。 (由 Robert Collins 在 :issue:`19746` 中贡献。)"
30023009

30033010
#: ../../whatsnew/3.5.rst:1998
30043011
msgid ""
@@ -3050,6 +3057,8 @@ msgid ""
30503057
":func:`~unittest.mock.patch` function when patching builtin names. "
30513058
"(Contributed by Kushal Das in :issue:`17660`.)"
30523059
msgstr ""
3060+
"在对内置名称打补丁时不再需要显式地将 ``create=True`` 传给 :func:`~unittest.mock.patch` 函数。 (由 "
3061+
"Kushal Das 在 :issue:`17660` 中贡献。)"
30533062

30543063
#: ../../whatsnew/3.5.rst:2027
30553064
msgid "urllib"
@@ -3100,6 +3109,8 @@ msgid ""
31003109
"<wsgiref.headers.Headers>` class constructor is now optional. (Contributed "
31013110
"by Pablo Torres Navarrete and SilentGhost in :issue:`5800`.)"
31023111
msgstr ""
3112+
"现在 :class:`headers.Headers <wsgiref.headers.Headers>` 类构造器的 *headers* "
3113+
"参数将是可选的。 (由 Pablo Torres Navarrete 和 SilentGhost 在 :issue:`5800` 中贡献。)"
31033114

31043115
#: ../../whatsnew/3.5.rst:2062
31053116
msgid "xmlrpc"

0 commit comments

Comments
 (0)
0