@@ -2992,13 +2992,20 @@ msgid ""
2992
2992
" match the default pattern. (Contributed by Robert Collins and Barry A. "
2993
2993
"Warsaw in :issue:`16662`.)"
2994
2994
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
+ "中贡献。)"
2995
3000
2996
3001
#: ../../whatsnew/3.5.rst:1993
2997
3002
msgid ""
2998
3003
"Unittest discovery errors now are exposed in the :data:`TestLoader.errors "
2999
3004
"<unittest.TestLoader.errors>` attribute of the :class:`~unittest.TestLoader`"
3000
3005
" instance. (Contributed by Robert Collins in :issue:`19746`.)"
3001
3006
msgstr ""
3007
+ "单元测试发现错误现在将会暴露为 :class:`~unittest.TestLoader` 的 :data:`TestLoader.errors "
3008
+ "<unittest.TestLoader.errors>` 属性。 (由 Robert Collins 在 :issue:`19746` 中贡献。)"
3002
3009
3003
3010
#: ../../whatsnew/3.5.rst:1998
3004
3011
msgid ""
@@ -3050,6 +3057,8 @@ msgid ""
3050
3057
":func:`~unittest.mock.patch` function when patching builtin names. "
3051
3058
"(Contributed by Kushal Das in :issue:`17660`.)"
3052
3059
msgstr ""
3060
+ "在对内置名称打补丁时不再需要显式地将 ``create=True`` 传给 :func:`~unittest.mock.patch` 函数。 (由 "
3061
+ "Kushal Das 在 :issue:`17660` 中贡献。)"
3053
3062
3054
3063
#: ../../whatsnew/3.5.rst:2027
3055
3064
msgid "urllib"
@@ -3100,6 +3109,8 @@ msgid ""
3100
3109
"<wsgiref.headers.Headers>` class constructor is now optional. (Contributed "
3101
3110
"by Pablo Torres Navarrete and SilentGhost in :issue:`5800`.)"
3102
3111
msgstr ""
3112
+ "现在 :class:`headers.Headers <wsgiref.headers.Headers>` 类构造器的 *headers* "
3113
+ "参数将是可选的。 (由 Pablo Torres Navarrete 和 SilentGhost 在 :issue:`5800` 中贡献。)"
3103
3114
3104
3115
#: ../../whatsnew/3.5.rst:2062
3105
3116
msgid "xmlrpc"
0 commit comments