@@ -2854,12 +2854,17 @@ msgid ""
2854
2854
"and/or formatted messages that were logged. (Contributed by Antoine Pitrou "
2855
2855
"in :issue:`18937`.)"
2856
2856
msgstr ""
2857
+ "新增的测试断言上下文管理器 :meth:`~unittest.TestCase.assertLogs` 将确保给定的代码块使用 "
2858
+ ":mod:`logging` 模块发出日志记录消息。 在默认情况下消息可来自任意日志记录器并具有 ``INFO`` "
2859
+ "或更高的优先级,但要指明日志记录器名称和替代的最低日志级别。 可以在该上下文管理器所返回的对象中查询 "
2860
+ ":class:`~logging.LogRecord` 和/或所记录的已格式化消息。 (由 Antoine Pitrou 在 "
2861
+ ":issue:`18937` 中贡献。)"
2857
2862
2858
2863
#: ../../whatsnew/3.4.rst:1705
2859
2864
msgid ""
2860
2865
"Test discovery now works with namespace packages (Contributed by Claudiu "
2861
2866
"Popa in :issue:`17457`.)"
2862
- msgstr ""
2867
+ msgstr "现在测试发现将可用于命名空间包(由 Claudiu Popa 在 :issue:`17457` 中贡献。).) "
2863
2868
2864
2869
#: ../../whatsnew/3.4.rst:1708
2865
2870
msgid ""
@@ -2868,12 +2873,16 @@ msgid ""
2868
2873
"position or name, instead of only by position. (Contributed by Antoine "
2869
2874
"Pitrou in :issue:`17015`.)"
2870
2875
msgstr ""
2876
+ "现在 :mod:`unittest.mock` 对象可以在匹配调用时检查其规范签名,这意味着现在可以通过位置或名称来匹配参数,而不是仅能通过位置。 (由"
2877
+ " Antoine Pitrou 在 :issue:`17015` 中贡献。)"
2871
2878
2872
2879
#: ../../whatsnew/3.4.rst:1713
2873
2880
msgid ""
2874
2881
":func:`~mock.mock_open` objects now have ``readline`` and ``readlines`` "
2875
2882
"methods. (Contributed by Toshio Kuratomi in :issue:`17467`.)"
2876
2883
msgstr ""
2884
+ "现在 :func:`~mock.mock_open` 对象具有 ``readline`` 和 ``readlines`` 方法。 (由 Toshio "
2885
+ "Kuratomi 在 :issue:`17467` 中贡献。)"
2877
2886
2878
2887
#: ../../whatsnew/3.4.rst:1718
2879
2888
msgid "venv"
@@ -2884,6 +2893,8 @@ msgid ""
2884
2893
":mod:`venv` now includes activation scripts for the ``csh`` and ``fish`` "
2885
2894
"shells. (Contributed by Andrew Svetlov in :issue:`15417`.)"
2886
2895
msgstr ""
2896
+ "现在 :mod:`venv` 包括了用于 ``csh`` 和 ``fish`` shell 的激活脚本。 (由 Andrew Svetlov 在 "
2897
+ ":issue:`15417` 中贡献。)"
2887
2898
2888
2899
#: ../../whatsnew/3.4.rst:1723
2889
2900
msgid ""
0 commit comments