cpython/Lib/test/test_tools
Miss Islington (bot) 306db142c2
[3.12] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808) (GH-126847)
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.
(cherry picked from commit 9a456383be)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2024-11-14 22:35:35 +00:00
..
i18n_data [3.12] gh-104400: Add more tests to pygettext (GH-108173) (GH-126362) 2024-11-03 14:24:41 +00:00
__init__.py
__main__.py
test_freeze.py
test_i18n.py [3.12] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808) (GH-126847) 2024-11-14 22:35:35 +00:00
test_makefile.py [3.12] gh-126014: Ignore __pycache__-only folders in makefile tests (GH-126066) (#126110) 2024-10-29 08:04:50 +00:00
test_reindent.py
test_sundry.py