1515# KaMingChung <[email protected] >, 20201616# Claude Manchester <[email protected] >, 20211717# helloworldSB <[email protected] >, 202118- # Freesand Leo <[email protected] >, 20211918# Siyuan Xu, 2021
19+ # Justin Chu <[email protected] >, 202120+ # Freesand Leo <[email protected] >, 20212021#
2122#, fuzzy
2223msgid ""
@@ -25,7 +26,7 @@ msgstr ""
2526"Report-Msgid-Bugs-To : \n "
2627"POT-Creation-Date : 2021-01-01 16:02+0000\n "
2728"PO-Revision-Date : 2019-09-01 03:29+0000\n "
28- "Last-Translator : Siyuan Xu , 2021\n "
29+ "
Last-Translator :
Freesand Leo <[email protected] > , 2021\n"
2930"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
3031"MIME-Version : 1.0\n "
3132"Content-Type : text/plain; charset=UTF-8\n "
@@ -691,6 +692,8 @@ msgid ""
691692"is not recommended. Taking the time to set up proper :class:`TestCase` "
692693"subclasses will make future test refactorings infinitely easier."
693694msgstr ""
695+ "可以用 :class:`FunctionTestCase` 快速将现有的测试转换成基于 :mod:`unittest` 的测试,但不推荐。花点时间继承 "
696+ ":class:`TestCase` 会让以后重构测试无比轻松。"
694697
695698#: ../../library/unittest.rst:494
696699msgid ""
@@ -712,6 +715,8 @@ msgid ""
712715" a test that is broken and will fail, but shouldn't be counted as a failure "
713716"on a :class:`TestResult`."
714717msgstr ""
718+ "Unittest 支持跳过单个或整组的测试用例。它还支持把测试标注成“预期失败”的测试。这些坏测试会失败,但不会算进 "
719+ ":class:`TestResult` 的失败里。"
715720
716721#: ../../library/unittest.rst:512
717722msgid ""
@@ -754,7 +759,7 @@ msgstr ""
754759msgid ""
755760"The following decorators and exception implement test skipping and expected "
756761"failures:"
757- msgstr ""
762+ msgstr "以下的装饰器和异常实现了跳过测试和预期失败两种功能: "
758763
759764#: ../../library/unittest.rst:583
760765msgid ""
@@ -822,7 +827,7 @@ msgid ""
822827"Without using a subtest, execution would stop after the first failure, and "
823828"the error would be less easy to diagnose because the value of ``i`` wouldn't"
824829" be displayed::"
825- msgstr ""
830+ msgstr "如果不使用子测试,程序遇到第一次错误之后就会停止。而且因为``i``的值不显示,错误也更难找。 "
826831
827832#: ../../library/unittest.rst:676
828833msgid "Classes and functions"
@@ -870,7 +875,7 @@ msgstr ""
870875
871876#: ../../library/unittest.rst:710
872877msgid "Methods in the first group (running the test) are:"
873- msgstr ""
878+ msgstr "第一组(用于运行测试的)方法是: "
874879
875880#: ../../library/unittest.rst:714
876881msgid ""
@@ -1282,7 +1287,7 @@ msgstr "或者:"
12821287
12831288#: ../../library/unittest.rst:1010
12841289msgid "Added under the name ``assertRaisesRegexp``."
1285- msgstr ""
1290+ msgstr "以方法名``assertRaisesRegexp``添加。 "
12861291
12871292#: ../../library/unittest.rst:1013
12881293msgid "Renamed to :meth:`assertRaisesRegex`."
@@ -1503,13 +1508,13 @@ msgstr ""
15031508
15041509#: ../../library/unittest.rst:1203
15051510msgid "Added under the name ``assertRegexpMatches``."
1506- msgstr ""
1511+ msgstr "以方法名``assertRegexpMatches``添加。 "
15071512
15081513#: ../../library/unittest.rst:1205
15091514msgid ""
15101515"The method ``assertRegexpMatches()`` has been renamed to "
15111516":meth:`.assertRegex`."
1512- msgstr ""
1517+ msgstr "方法 ``assertRegexpMatches()`` 已被改名为 :meth:`.assertRegex`。 "
15131518
15141519#: ../../library/unittest.rst:1208
15151520msgid ":meth:`.assertNotRegex`."
@@ -1519,7 +1524,7 @@ msgstr ":meth:`.assertNotRegex`"
15191524msgid ""
15201525"The name ``assertNotRegexpMatches`` is a deprecated alias for "
15211526":meth:`.assertNotRegex`."
1522- msgstr ""
1527+ msgstr "``assertNotRegexpMatches`` 这个名字是 :meth:`.assertNotRegex` 的已被弃用的别名。 "
15231528
15241529#: ../../library/unittest.rst:1217
15251530msgid ""
@@ -1561,58 +1566,59 @@ msgid ""
15611566":meth:`~TestCase.assertEqual` are summarized in the following table. Note "
15621567"that it's usually not necessary to invoke these methods directly."
15631568msgstr ""
1569+ "以下是 :meth:`~TestCase.assertEqual` 自动选用的不同类型的比较方法。一般情况下不需要直接在测试中调用这些方法。"
15641570
15651571#: ../../library/unittest.rst:1255
15661572msgid "Used to compare"
1567- msgstr ""
1573+ msgstr "用作比较 "
15681574
15691575#: ../../library/unittest.rst:1257
15701576msgid ":meth:`assertMultiLineEqual(a, b) <TestCase.assertMultiLineEqual>`"
15711577msgstr ":meth:`assertMultiLineEqual(a, b) <TestCase.assertMultiLineEqual>`"
15721578
15731579#: ../../library/unittest.rst:1257
15741580msgid "strings"
1575- msgstr ""
1581+ msgstr "字符串 "
15761582
15771583#: ../../library/unittest.rst:1260
15781584msgid ":meth:`assertSequenceEqual(a, b) <TestCase.assertSequenceEqual>`"
15791585msgstr ":meth:`assertSequenceEqual(a, b) <TestCase.assertSequenceEqual>`"
15801586
15811587#: ../../library/unittest.rst:1260
15821588msgid "sequences"
1583- msgstr ""
1589+ msgstr "序列 "
15841590
15851591#: ../../library/unittest.rst:1263
15861592msgid ":meth:`assertListEqual(a, b) <TestCase.assertListEqual>`"
15871593msgstr ":meth:`assertListEqual(a, b) <TestCase.assertListEqual>`"
15881594
15891595#: ../../library/unittest.rst:1263
15901596msgid "lists"
1591- msgstr ""
1597+ msgstr "列表 "
15921598
15931599#: ../../library/unittest.rst:1266
15941600msgid ":meth:`assertTupleEqual(a, b) <TestCase.assertTupleEqual>`"
15951601msgstr ":meth:`assertTupleEqual(a, b) <TestCase.assertTupleEqual>`"
15961602
15971603#: ../../library/unittest.rst:1266
15981604msgid "tuples"
1599- msgstr ""
1605+ msgstr "元组 "
16001606
16011607#: ../../library/unittest.rst:1269
16021608msgid ":meth:`assertSetEqual(a, b) <TestCase.assertSetEqual>`"
16031609msgstr ":meth:`assertSetEqual(a, b) <TestCase.assertSetEqual>`"
16041610
16051611#: ../../library/unittest.rst:1269
16061612msgid "sets or frozensets"
1607- msgstr ""
1613+ msgstr "集合 "
16081614
16091615#: ../../library/unittest.rst:1272
16101616msgid ":meth:`assertDictEqual(a, b) <TestCase.assertDictEqual>`"
16111617msgstr ":meth:`assertDictEqual(a, b) <TestCase.assertDictEqual>`"
16121618
16131619#: ../../library/unittest.rst:1272
16141620msgid "dicts"
1615- msgstr ""
1621+ msgstr "字典 "
16161622
16171623#: ../../library/unittest.rst:1280
16181624msgid ""
0 commit comments