🌐 AI搜索 & 代理 主页
Skip to content

Commit 6dfb710

Browse files
[po] auto sync
1 parent e0e0f30 commit 6dfb710

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.85%", "updated_at": "2025-11-24T03:24:26Z"}
1+
{"translation": "99.86%", "updated_at": "2025-11-24T07:00:18Z"}

library/unittest.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,6 +2656,10 @@ msgid ""
26562656
"method will only be called if the :meth:`asyncSetUp` succeeds, regardless of"
26572657
" the outcome of the test method. The default implementation does nothing."
26582658
msgstr ""
2659+
"在测试方法被调用并记录结果之后立即被调用的方法。 ���方法会在 :meth:`~TestCase.tearDown` 之前被调用。 "
2660+
"即使在测试方法引发异常时它仍会被调用,因此子类中的实现将需要特别注意检查内部状态。 除 :exc:`AssertionError` 或 "
2661+
":exc:`SkipTest` 外,此方法所引发的任何异常都将被视为额外的错误而非测试失败(因而会增加总计错误报告数)。 此方法将只有 "
2662+
":meth:`asyncSetUp` 成功执行时被调用,无论测试方法的结果如何。 默认的实现将不做任何事情。"
26592663

26602664
#: ../../library/unittest.rst:1606
26612665
msgid ""
@@ -2682,6 +2686,9 @@ msgid ""
26822686
"returned to :meth:`run`'s caller. At the end of the test all the tasks in "
26832687
"the event loop are cancelled."
26842688
msgstr ""
2689+
"设置一个新的事件循环来运行测试,将结果收集至作为 *result* 传入的 :class:`TestResult` 对象中。 如果 *result* "
2690+
"被省略或为 ``None``,则会创建一个临时的结果对象(通过调用 :meth:`~TestCase.defaultTestResult` "
2691+
"方法)并使用它。 结果对象会被返回给 :meth:`run` 的调用方。 在测试结束时事件循环中的所有任务都将被取消。"
26852692

26862693
#: ../../library/unittest.rst:1629
26872694
msgid "An example illustrating the order::"
@@ -2867,6 +2874,11 @@ msgid ""
28672874
"tests returned by this method unless the caller uses a subclass that "
28682875
"overrides :meth:`!TestSuite._removeTestAtIndex` to preserve test references."
28692876
msgstr ""
2877+
"由 :class:`TestSuite` 分组的测试总是可以通过迭代来访问。 其子类可以通过重写 :meth:`!__iter__` 来惰性地提供测试。"
2878+
" 请注意此方法可在单个套件上多次被调用(例如在对测试计数或比较相等性时)因此在. :meth:`TestSuite.run` "
2879+
"之前重复迭代所返回的测试对于每次调用迭代都必须相同。 在 :meth:`TestSuite.run` "
2880+
"之后,调用方不应继续访问此方法所返回的测试,除非调用方使用重写了 :meth:`!TestSuite._removeTestAtIndex` "
2881+
"的子类来保留对测试的引用。to preserve test references."
28702882

28712883
#: ../../library/unittest.rst:1748
28722884
msgid ""

0 commit comments

Comments
 (0)