Skip to content

Commit 046b098

Browse files
[po] auto sync
1 parent 7339832 commit 046b098

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.stat.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.87%", "updated_at": "2024-05-06T02:27:09Z"}
1+
{"translation": "92.89%", "updated_at": "2024-05-06T06:25:26Z"}

whatsnew/3.4.po

+23-1
Original file line numberDiff line numberDiff line change
@@ -2797,27 +2797,36 @@ msgid ""
27972797
" version of this example. (Contributed by Antoine Pitrou in "
27982798
":issue:`16997`.)"
27992799
msgstr ""
2800+
"将得到六个子测试,在单元测试详细输出中各自以变量名 ``i`` 加该变量专属的值来标识 (``i=0``, ``i=1`` 等等)。 该示例的完整版本见"
2801+
" :ref:`subtests`。 (由 Antoine Pitrou 在 :issue:`16997` 中贡献。)"
28002802

28012803
#: ../../whatsnew/3.4.rst:1676
28022804
msgid ""
28032805
":func:`unittest.main` now accepts an iterable of test names for "
28042806
"*defaultTest*, where previously it only accepted a single test name as a "
28052807
"string. (Contributed by Jyrki Pulliainen in :issue:`15132`.)"
28062808
msgstr ""
2809+
"现在 :func:`unittest.main` 接受一个包含测试名称的可迭代对象作为 "
2810+
"*defaultTest*,而在之前版本中它只接受单个字符串形式的测试名称。 (由 Jyrki Pulliainen 在 :issue:`15132` "
2811+
"中贡献。)"
28072812

28082813
#: ../../whatsnew/3.4.rst:1680
28092814
msgid ""
28102815
"If :class:`~unittest.SkipTest` is raised during test discovery (that is, at "
28112816
"the module level in the test file), it is now reported as a skip instead of "
28122817
"an error. (Contributed by Zach Ware in :issue:`16935`.)"
28132818
msgstr ""
2819+
"如果在测试发现期间(即在测试文件中的模块层级)引发了 :class:`~unittest.SkipTest`,现在它将被报告为跳过而不是错误。 (由 "
2820+
"Zach Ware 在 :issue:`16935` 中贡献。)"
28142821

28152822
#: ../../whatsnew/3.4.rst:1684
28162823
msgid ""
28172824
":meth:`~unittest.TestLoader.discover` now sorts the discovered files to "
28182825
"provide consistent test ordering. (Contributed by Martin Melin and Jeff "
28192826
"Ramnani in :issue:`16709`.)"
28202827
msgstr ""
2828+
"现在 :meth:`~unittest.TestLoader.discover` 会对所发现的文件进行排序以提供一致的测试顺序。 (由 Martin "
2829+
"Melin 和 Jeff Ramnani 在 :issue:`16709` 中贡献。)"
28212830

28222831
#: ../../whatsnew/3.4.rst:1688
28232832
msgid ""
@@ -2829,6 +2838,10 @@ msgid ""
28292838
"defines a custom ``_removeTestAtIndex`` method. (Contributed by Tom "
28302839
"Wardill, Matt McClure, and Andrew Svetlov in :issue:`11798`.)"
28312840
msgstr ""
2841+
"如果测试成功,现在 :class:`~unittest.TestSuite` 会在测试完成运行时立即丢弃对测试的引用。 在支持垃圾回收的 Python "
2842+
"解释器上,这允许当没有其他对象持有对测试的引用时将该测试作为垃圾回收。 可以通过创建一个定义了自定义 ``_removeTestAtIndex`` "
2843+
"方法的 :class:`~unittest.TestSuite` 子类来覆盖此行为。 (由 Tom Wardill, Matt McClure 和 "
2844+
"Andrew Svetlov 在 :issue:`11798` 中贡献。)"
28322845

28332846
#: ../../whatsnew/3.4.rst:1696
28342847
msgid ""
@@ -3490,6 +3503,8 @@ msgid ""
34903503
"appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline* "
34913504
"argument."
34923505
msgstr ""
3506+
"各种 ``open`` 函数所接受的 ``U`` 模式已被弃用。 在 Python3 中它已不再有任何实际作用,并应当改用适当的 "
3507+
":class:`io.TextIOWrapper` (如有必要) 及其 *newline* 参数。"
34933508

34943509
#: ../../whatsnew/3.4.rst:2139
34953510
msgid ""
@@ -3498,6 +3513,9 @@ msgid ""
34983513
":func:`~xml.etree.ElementTree.XMLParser`. To prepare for the removal of the"
34993514
" latter, all arguments to ``XMLParser`` should be passed by keyword."
35003515
msgstr ""
3516+
":func:`xml.etree.ElementTree.iterparse` 的 *parser* 参数,就如 "
3517+
":func:`~xml.etree.ElementTree.XMLParser` 的 *html* 参数一样。 要对后者的移除做好准备,所有 "
3518+
"``XMLParser`` 的参数都应当以关键字形式传入。"
35013519

35023520
#: ../../whatsnew/3.4.rst:2146
35033521
msgid "Deprecated Features"
@@ -3508,12 +3526,14 @@ msgid ""
35083526
"Running :ref:`idle` with the ``-n`` flag (no subprocess) is deprecated. "
35093527
"However, the feature will not be removed until :issue:`18823` is resolved."
35103528
msgstr ""
3529+
"运行 :ref:`idle` 时附带 ``-n`` 旗标(无子进程)的做法已被弃用。 但是,该特性在 :issue:`18823` "
3530+
"解决之前将不会被移除。"
35113531

35123532
#: ../../whatsnew/3.4.rst:2151
35133533
msgid ""
35143534
"The site module adding a \"site-python\" directory to sys.path, if it "
35153535
"exists, is deprecated (:issue:`19375`)."
3516-
msgstr ""
3536+
msgstr "site 模块在 \"site-python\" 目录存在的情况下 sys.path 添加该目录的做法已被弃用 (:issue:`19375`)。"
35173537

35183538
#: ../../whatsnew/3.4.rst:2157
35193539
msgid "Removed"
@@ -3563,6 +3583,8 @@ msgid ""
35633583
"removed (see the `devguide <https://devguide.python.org>`_ for suggestions "
35643584
"on what to use instead)."
35653585
msgstr ""
3586+
"不再继续维护的 ``Misc/TextMate`` 和 ``Misc/vim`` 目录已被移除(请参阅 `devguide "
3587+
"<https://devguide.python.org>`_ 了解相关替代器的使用建议)。"
35663588

35673589
#: ../../whatsnew/3.4.rst:2182
35683590
msgid ""

0 commit comments

Comments
 (0)