cpython/Lib/test/test_tools
Miss Islington (bot) bf40fdbff1
[3.13] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808) (GH-126846)
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:43:33 +00:00
..
i18n_data [3.13] gh-104400: Add more tests to pygettext (GH-108173) (GH-126361) 2024-11-03 14:30:16 +00:00
__init__.py test_peg_generator and test_freeze require cpu (#108386) 2023-08-24 00:52:48 +02:00
__main__.py
test_freeze.py gh-113384: Skip test_freeze for framework builds on macOS (#113390) 2023-12-22 11:35:54 +01:00
test_i18n.py [3.13] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808) (GH-126846) 2024-11-14 22:43:33 +00:00
test_makefile.py [3.13] gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066) (#126109) 2024-10-29 08:11:47 +00:00
test_makeunicodedata.py gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764) 2023-11-06 15:32:35 +01:00
test_reindent.py gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) 2023-09-12 09:37:42 +03:00
test_sundry.py GH-107458: fix test_tools refleak (#107577) 2023-08-03 06:36:02 +00:00