summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools/test_i18n.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-126700: pygettext: Support more gettext functions (GH-126912)Tomas R.2024-11-221-2/+2
| | | | Support multi-argument gettext functions: ngettext(), pgettext(), dgettext(), etc.
* gh-126807: pygettext: Do not attempt to extract messages from function ↵Tomas R.2024-11-141-5/+28
| | | | | | | | | | | | | | | | definitions. (GH-126808) Fixes a bug where pygettext would attempt to extract a message from a code like this: def _(x): pass This is because pygettext only looks at one token at a time and '_(x)' looks like a function call. However, since 'x' is not a string literal, it would erroneously issue a warning.
* gh-104400: Add more tests to pygettext (GH-108173)Tomas R.2024-11-031-21/+89
|
* gh-95731: Fix module docstring extraction in pygettext (#95732)Jakub Kuczys2022-10-151-0/+20
|
* Fix EncodingWarning in test_tools. (GH-28846)Inada Naoki2021-10-101-8/+11
|
* bpo-36310: Allow pygettext.py to detect calls to gettext in f-strings. ↵jack11422020-11-091-0/+70
| | | | | | | (GH-19875) Adds support to Tools/i18n/pygettext.py for gettext calls in f-strings. This process is done by parsing the f-strings, processing each value, and flagging the ones which contain a gettext call. Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
* bpo-40275: Use new test.support helper submodules in tests (GH-21727)Hai Shi2020-08-041-1/+1
|
* bpo-36766: Typos in docs and code comments (GH-13116)penguindustin2019-05-061-1/+1
|
* bpo-33189: pygettext.py now accepts only literal strings (GH-6364)Serhiy Storchaka2018-04-191-6/+65
| | | | as docstrings and translatable strings, and rejects bytes literals and f-string expressions.
* bpo-31920: Fixed handling directories as arguments in the ``pygettext`` ↵Serhiy Storchaka2018-04-091-1/+25
| | | | | script. (GH-6259) Based on patch by Oleg Krasnikov.
* bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵Tobotimus2018-02-261-0/+88
| | | | (GH-4745)
* bpo-29972: Skip tests known to fail on AIX (#979)Victor Stinner2017-04-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | * bpo-29972: Fix test_eintr on AIX On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer. * bpo-29972: Skip some inet_pton() tests on AIX Skip some inet_pton() tests of test_socket on AIX. inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself. * bpo-29972: Skip tests known to fail on AIX * test_locale.test_strcoll_with_diacritic() * test_locale.test_strxfrm_with_diacritic() * test_strptime.test_week_of_year_and_day_of_week_calculation() * test_tools.test_POT_Creation_Date()
* Skip test_tools.test_i18n when pygettext.py is missingZachary Ware2016-08-301-1/+5
|
* Fix remaining tests and remove an unused import.Berker Peksag2015-05-061-1/+1
|
* #18128: use standard +NNNN timezone format in POT-Creation-Date header.R David Murray2015-04-161-0/+68
Patch by Michael McFadden, with a few small style tweaks.