@@ -2797,27 +2797,36 @@ msgid ""
2797
2797
" version of this example. (Contributed by Antoine Pitrou in "
2798
2798
":issue:`16997`.)"
2799
2799
msgstr ""
2800
+ "将得到六个子测试,在单元测试详细输出中各自以变量名 ``i`` 加该变量专属的值来标识 (``i=0``, ``i=1`` 等等)。 该示例的完整版本见"
2801
+ " :ref:`subtests`。 (由 Antoine Pitrou 在 :issue:`16997` 中贡献。)"
2800
2802
2801
2803
#: ../../whatsnew/3.4.rst:1676
2802
2804
msgid ""
2803
2805
":func:`unittest.main` now accepts an iterable of test names for "
2804
2806
"*defaultTest*, where previously it only accepted a single test name as a "
2805
2807
"string. (Contributed by Jyrki Pulliainen in :issue:`15132`.)"
2806
2808
msgstr ""
2809
+ "现在 :func:`unittest.main` 接受一个包含测试名称的可迭代对象作为 "
2810
+ "*defaultTest*,而在之前版本中它只接受单个字符串形式的测试名称。 (由 Jyrki Pulliainen 在 :issue:`15132` "
2811
+ "中贡献。)"
2807
2812
2808
2813
#: ../../whatsnew/3.4.rst:1680
2809
2814
msgid ""
2810
2815
"If :class:`~unittest.SkipTest` is raised during test discovery (that is, at "
2811
2816
"the module level in the test file), it is now reported as a skip instead of "
2812
2817
"an error. (Contributed by Zach Ware in :issue:`16935`.)"
2813
2818
msgstr ""
2819
+ "如果在测试发现期间(即在测试文件中的模块层级)引发了 :class:`~unittest.SkipTest`,现在它将被报告为跳过而不是错误。 (由 "
2820
+ "Zach Ware 在 :issue:`16935` 中贡献。)"
2814
2821
2815
2822
#: ../../whatsnew/3.4.rst:1684
2816
2823
msgid ""
2817
2824
":meth:`~unittest.TestLoader.discover` now sorts the discovered files to "
2818
2825
"provide consistent test ordering. (Contributed by Martin Melin and Jeff "
2819
2826
"Ramnani in :issue:`16709`.)"
2820
2827
msgstr ""
2828
+ "现在 :meth:`~unittest.TestLoader.discover` 会对所发现的文件进行排序以提供一致的测试顺序。 (由 Martin "
2829
+ "Melin 和 Jeff Ramnani 在 :issue:`16709` 中贡献。)"
2821
2830
2822
2831
#: ../../whatsnew/3.4.rst:1688
2823
2832
msgid ""
0 commit comments