Skip to content

Commit a5a7ad7

Browse files
sync with cpython 82362221
1 parent bb89cf0 commit a5a7ad7

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

library/profile.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
10+
"POT-Creation-Date: 2023-04-03 00:16+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:08+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -101,7 +101,7 @@ msgstr ""
101101
msgid ""
102102
"The first line indicates that 214 calls were monitored. Of those calls, 207 "
103103
"were :dfn:`primitive`, meaning that the call was not induced via recursion. "
104-
"The next line: ``Ordered by: cumulative name``, indicates that the text "
104+
"The next line: ``Ordered by: cumulative time``, indicates that the text "
105105
"string in the far right column was used to sort the output. The column "
106106
"headings include:"
107107
msgstr ""

library/test.po

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
10+
"POT-Creation-Date: 2023-04-03 00:16+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:12+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -671,9 +671,9 @@ msgstr ""
671671

672672
#: ../../library/test.rst:624
673673
msgid ""
674-
"Print a warning into :data:`sys.__stderr__`. Format the message as: ``f"
675-
"\"Warning -- {msg}\"``. If *msg* is made of multiple lines, add ``\"Warning "
676-
"-- \"`` prefix to each line."
674+
"Print a warning into :data:`sys.__stderr__`. Format the message as: "
675+
"``f\"Warning -- {msg}\"``. If *msg* is made of multiple lines, add "
676+
"``\"Warning -- \"`` prefix to each line."
677677
msgstr ""
678678

679679
#: ../../library/test.rst:633
@@ -1674,12 +1674,20 @@ msgstr ""
16741674

16751675
#: ../../library/test.rst:1636
16761676
msgid ""
1677+
"Suppress warnings that are instances of *category*, which must be :exc:"
1678+
"`Warning` or a subclass. Roughly equivalent to :func:`warnings."
1679+
"catch_warnings` with :meth:`warnings.simplefilter('ignore', "
1680+
"category=category) <warnings.simplefilter>`. For example::"
1681+
msgstr ""
1682+
1683+
#: ../../library/test.rst:1651
1684+
msgid ""
16771685
"Context manager to check that no :exc:`ResourceWarning` was raised. You "
16781686
"must remove the object which may emit :exc:`ResourceWarning` before the end "
16791687
"of the context manager."
16801688
msgstr ""
16811689

1682-
#: ../../library/test.rst:1643
1690+
#: ../../library/test.rst:1658
16831691
msgid ""
16841692
"Test for syntax warning in *statement* by attempting to compile *statement*. "
16851693
"Test also that the :exc:`SyntaxWarning` is emitted only once, and that it "
@@ -1691,7 +1699,7 @@ msgid ""
16911699
"``None``, compares to the offset of the exception."
16921700
msgstr ""
16931701

1694-
#: ../../library/test.rst:1657
1702+
#: ../../library/test.rst:1672
16951703
msgid ""
16961704
"A convenience wrapper for :func:`warnings.catch_warnings()` that makes it "
16971705
"easier to test that a warning was correctly raised. It is approximately "
@@ -1700,7 +1708,7 @@ msgid ""
17001708
"automatically validate the results that are recorded."
17011709
msgstr ""
17021710

1703-
#: ../../library/test.rst:1663
1711+
#: ../../library/test.rst:1678
17041712
msgid ""
17051713
"``check_warnings`` accepts 2-tuples of the form ``(\"message regexp\", "
17061714
"WarningCategory)`` as positional arguments. If one or more *filters* are "
@@ -1712,15 +1720,15 @@ msgid ""
17121720
"*quiet* to ``True``."
17131721
msgstr ""
17141722

1715-
#: ../../library/test.rst:1672
1723+
#: ../../library/test.rst:1687
17161724
msgid "If no arguments are specified, it defaults to::"
17171725
msgstr ""
17181726

1719-
#: ../../library/test.rst:1676
1727+
#: ../../library/test.rst:1691
17201728
msgid "In this case all warnings are caught and no errors are raised."
17211729
msgstr ""
17221730

1723-
#: ../../library/test.rst:1678
1731+
#: ../../library/test.rst:1693
17241732
msgid ""
17251733
"On entry to the context manager, a :class:`WarningRecorder` instance is "
17261734
"returned. The underlying warnings list from :func:`~warnings.catch_warnings` "
@@ -1732,39 +1740,39 @@ msgid ""
17321740
"return ``None``."
17331741
msgstr ""
17341742

1735-
#: ../../library/test.rst:1687
1743+
#: ../../library/test.rst:1702
17361744
msgid ""
17371745
"The recorder object also has a :meth:`reset` method, which clears the "
17381746
"warnings list."
17391747
msgstr ""
17401748

1741-
#: ../../library/test.rst:1690
1749+
#: ../../library/test.rst:1705
17421750
msgid "The context manager is designed to be used like this::"
17431751
msgstr ""
17441752

1745-
#: ../../library/test.rst:1697
1753+
#: ../../library/test.rst:1712
17461754
msgid ""
17471755
"In this case if either warning was not raised, or some other warning was "
17481756
"raised, :func:`check_warnings` would raise an error."
17491757
msgstr ""
17501758

1751-
#: ../../library/test.rst:1700
1759+
#: ../../library/test.rst:1715
17521760
msgid ""
17531761
"When a test needs to look more deeply into the warnings, rather than just "
17541762
"checking whether or not they occurred, code like this can be used::"
17551763
msgstr ""
17561764

1757-
#: ../../library/test.rst:1714
1765+
#: ../../library/test.rst:1729
17581766
msgid ""
17591767
"Here all warnings will be caught, and the test code tests the captured "
17601768
"warnings directly."
17611769
msgstr ""
17621770

1763-
#: ../../library/test.rst:1717
1771+
#: ../../library/test.rst:1732
17641772
msgid "New optional arguments *filters* and *quiet*."
17651773
msgstr ""
17661774

1767-
#: ../../library/test.rst:1723
1775+
#: ../../library/test.rst:1738
17681776
msgid ""
17691777
"Class used to record warnings for unit tests. See documentation of :func:"
17701778
"`check_warnings` above for more details."

0 commit comments

Comments
 (0)