Skip to content

Commit c05e20b

Browse files
[po] auto sync
1 parent a913eaa commit c05e20b

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

library/unittest.po

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# Claude Manchester <atlanmatrix@gmail.com>, 2021
1717
# helloworldSB <warningfor163@foxmail.com>, 2021
1818
# Freesand Leo <yuqinju@163.com>, 2021
19+
# Siyuan Xu, 2021
1920
#
2021
#, fuzzy
2122
msgid ""
@@ -24,7 +25,7 @@ msgstr ""
2425
"Report-Msgid-Bugs-To: \n"
2526
"POT-Creation-Date: 2021-02-22 16:34+0000\n"
2627
"PO-Revision-Date: 2020-05-30 12:13+0000\n"
27-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
28+
"Last-Translator: Siyuan Xu, 2021\n"
2829
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2930
"MIME-Version: 1.0\n"
3031
"Content-Type: text/plain; charset=UTF-8\n"
@@ -179,6 +180,11 @@ msgid ""
179180
"`Jenkins <https://jenkins.io/>`_ or `Travis-CI <https://travis-ci.com>`_, or"
180181
" `AppVeyor <https://www.appveyor.com/>`_."
181182
msgstr ""
183+
"随 Python 源代码分发的脚本 :file:`Tools/unittestgui/unittestgui.py` "
184+
"是一个一个用于发现和执行测试的用户图形界面工具。这为了极大地方便单元测试新手使用。建议在生产环境中测试应由一个持续集成系统来启动,如 "
185+
"`Buildbot <https://buildbot.net/>`_, `Jenkins <https://jenkins.io/>`_ 或者"
186+
"`Travis-CI <https://travis-ci.com>`_, 或者 `AppVeyor "
187+
"<https://www.appveyor.com/>`_。"
182188

183189
#: ../../library/unittest.rst:82
184190
msgid "Basic example"
@@ -613,40 +619,42 @@ msgid ""
613619
"are several advantages to placing the test code in a separate module, such "
614620
"as :file:`test_widget.py`:"
615621
msgstr ""
622+
"你可以把测试用例和测试套件放在与被测试代码相同的模块中(比如 :file:`widget.py`),但将测试代码放在单独的模块中(比如 "
623+
":file:`test_widget.py`)有几个优势。"
616624

617625
#: ../../library/unittest.rst:445
618626
msgid "The test module can be run standalone from the command line."
619-
msgstr ""
627+
msgstr "测试模块可以从命令行被独立调用。"
620628

621629
#: ../../library/unittest.rst:447
622630
msgid "The test code can more easily be separated from shipped code."
623-
msgstr ""
631+
msgstr "更容易在分发的代码中剥离测试代码。"
624632

625633
#: ../../library/unittest.rst:449
626634
msgid ""
627635
"There is less temptation to change test code to fit the code it tests "
628636
"without a good reason."
629-
msgstr ""
637+
msgstr "降低没有好理由的情况下修改测试代码以通过测试的诱惑。"
630638

631639
#: ../../library/unittest.rst:452
632640
msgid ""
633641
"Test code should be modified much less frequently than the code it tests."
634-
msgstr ""
642+
msgstr "测试代码应比被测试代码更少地被修改。"
635643

636644
#: ../../library/unittest.rst:454
637645
msgid "Tested code can be refactored more easily."
638-
msgstr ""
646+
msgstr "被测试代码可以更容易地被重构。"
639647

640648
#: ../../library/unittest.rst:456
641649
msgid ""
642650
"Tests for modules written in C must be in separate modules anyway, so why "
643651
"not be consistent?"
644-
msgstr ""
652+
msgstr "对用 C 语言写成的模块无论如何都得单独写成一个模块,为什么不保持一致呢?"
645653

646654
#: ../../library/unittest.rst:459
647655
msgid ""
648656
"If the testing strategy changes, there is no need to change the source code."
649-
msgstr ""
657+
msgstr "如果测试策略发生了改变,没有必要修改源代码。"
650658

651659
#: ../../library/unittest.rst:465
652660
msgid "Re-using old test code"

0 commit comments

Comments
 (0)