Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75c7d2a

Browse files
[po] auto sync
1 parent 9d451a7 commit 75c7d2a

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

library/importlib.po

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# leollon <[email protected]>, 2021
1313
# 1lin24 <[email protected]>, 2021
1414
# Dai Xu <[email protected]>, 2021
15-
# Freesand Leo <[email protected]>, 2021
1615
# WH-2099 <[email protected]>, 2022
16+
# Freesand Leo <[email protected]>, 2022
1717
#
1818
#, fuzzy
1919
msgid ""
@@ -22,7 +22,7 @@ msgstr ""
2222
"Report-Msgid-Bugs-To: \n"
2323
"POT-Creation-Date: 2021-06-29 12:56+0000\n"
2424
"PO-Revision-Date: 2021-06-28 01:08+0000\n"
25-
"Last-Translator: WH-2099 <wh2099@outlook.com>, 2022\n"
25+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
2626
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2727
"MIME-Version: 1.0\n"
2828
"Content-Type: text/plain; charset=UTF-8\n"
@@ -301,10 +301,9 @@ msgid ""
301301
"return value is the module object (which can be different if re-importing "
302302
"causes a different object to be placed in :data:`sys.modules`)."
303303
msgstr ""
304-
"重新加载之前导入的 "
305-
"*module*。那个参数必须是一个模块对象,所以它之前必须已经成功导入了。这样做是有用的,如果使用外部编辑器编已经辑过了那个模块的源代码文件并且想在退出"
306-
" Python 解释器之前试验这个新版本的模块。函数的返回值是那个模块对象(如果重新导入导致一个不同的对象放置在 :data:`sys.modules`"
307-
" 中,那么那个模块对象是有可能会不同)。"
304+
"重新加载之前导入的 *module*。 那个参数必须是一个模块对象,所以它之前必须已经成功导入了。 "
305+
"这在你已经使用外部编辑器编辑过了那个模块的源代码文件并且想在退出 Python 解释器之前试验这个新版本的模块的时候将很适用。 "
306+
"函数的返回值是那个模块对象(如果重新导入导致一个不同的对象放置在 :data:`sys.modules` 中,那么那个模块对象是有可能会不同)。"
308307

309308
#: ../../library/importlib.rst:157
310309
msgid "When :func:`reload` is executed:"

library/unittest.po

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ msgstr "运行与这个套件相关联的测试而不收集结果。 这允许
23052305
msgid ""
23062306
"Return the number of tests represented by this test object, including all "
23072307
"individual tests and sub-suites."
2308-
msgstr ""
2308+
msgstr "返回此测试对象所提供的测试数量,包括单独的测试和子套件。"
23092309

23102310
#: ../../library/unittest.rst:1699
23112311
msgid ""
@@ -2318,27 +2318,38 @@ msgid ""
23182318
"tests returned by this method unless the caller uses a subclass that "
23192319
"overrides :meth:`TestSuite._removeTestAtIndex` to preserve test references."
23202320
msgstr ""
2321+
"由 :class:`TestSuite` 分组的测试总是可以通过迭代来访问。 其子类可以通过重载 :meth:`__iter__` 来惰性地提供测试。 "
2322+
"请注意此方法可在单个套件上多次被调用(例如在计数测试或相等性比较时),为此在 :meth:`TestSuite.run` "
2323+
"之前重复迭代所返回的测试对于每次调用迭代都必须相同。 在 :meth:`TestSuite.run` "
2324+
"之后,调用方不应继续访问此方法所返回的测试,除非调用方使用重载了 :meth:`TestSuite._removeTestAtIndex` "
2325+
"的子类来保留对测试的引用。"
23212326

23222327
#: ../../library/unittest.rst:1709
23232328
msgid ""
23242329
"In earlier versions the :class:`TestSuite` accessed tests directly rather "
23252330
"than through iteration, so overriding :meth:`__iter__` wasn't sufficient for"
23262331
" providing tests."
23272332
msgstr ""
2333+
"在较早的版本中 :class:`TestSuite` 会直接访问测试而不是通过迭代,因此只重载 :meth:`__iter__` 并不足以提供所有测试。"
23282334

23292335
#: ../../library/unittest.rst:1714
23302336
msgid ""
23312337
"In earlier versions the :class:`TestSuite` held references to each "
23322338
":class:`TestCase` after :meth:`TestSuite.run`. Subclasses can restore that "
23332339
"behavior by overriding :meth:`TestSuite._removeTestAtIndex`."
23342340
msgstr ""
2341+
"在较早的版本中 :class:`TestSuite` 会在 :meth:`TestSuite.run` 之后保留对每个 "
2342+
":class:`TestCase` 的引用。 其子类可以通过重载 :meth:`TestSuite._removeTestAtIndex` "
2343+
"来恢复此行为。"
23352344

23362345
#: ../../library/unittest.rst:1719
23372346
msgid ""
23382347
"In the typical usage of a :class:`TestSuite` object, the :meth:`run` method "
23392348
"is invoked by a :class:`TestRunner` rather than by the end-user test "
23402349
"harness."
23412350
msgstr ""
2351+
"在 :class:`TestSuite` 对象的典型应用中,:meth:`run` 方法是由 :class:`TestRunner` "
2352+
"发起调用而不是由最终用户测试来控制。"
23422353

23432354
#: ../../library/unittest.rst:1724
23442355
msgid "Loading and running tests"

0 commit comments

Comments
 (0)