Repository navigation
Increase test coverage of gettext #130655
Copy link
Copy link
Open
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement
Description
The test coverage for these functions is low as there are no dedicated tests for them. I propose we add tests for these functions.
This will come in handy if/when we decide to fix #64243.
Linked PRs
- gh-130655: Increase test coverage of
gettext._expand_lang#130656 - [3.13] gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656) #130671
- [3.12] gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656) #130672
- gh-130655: Add tests for
gettext.find()#130691 - gh-130655: Add a test for bad magic numbers when parsing gettext MO files #131909
- gh-130655: Add a test for corrupt MO files in gettext #131911
- [3.13] gh-130655: Add a test for bad magic numbers in
.mofiles parsed bygettext(GH-131909) #132077 - [3.12] gh-130655: Add a test for bad magic numbers in
.mofiles parsed bygettext(GH-131909) #132078 - [3.13] gh-130655: Add a test for corrupt
.mofiles ingettext(GH-131911) #132079 - [3.12] gh-130655: Add a test for corrupt
.mofiles ingettext(GH-131911) #132080 - [3.12] gh-130655: Add tests for
gettext.find()(GH-130691) #132083 - [3.13] gh-130655: Add tests for
gettext.find()(GH-130691) #132084 - gh-130655: Move
test_gettextdata to a separate file #132442 - gh-130655: Add a test for big-endian MO files in
gettext#132469 - [3.13] gh-130655: Add a test for big-endian MO files in gettext (GH-132469) #133248
- gh-130655: add tests for dgettext #134594
- gh-130655: gettext: Add fallback testcase #136857
- [3.14] gh-130655: gettext: Add fallback testcase (GH-136857) #136862
- [3.13] gh-130655: gettext: Add fallback testcase (GH-136857) #136863
- gh-130655: add tests for dgettext, dpgettext, dngettext, and dnpgettext functions #148430
- gh-130655: Add tests for dgettext, dngettext, dpgettext, dnpgettext #154006
Reacted by Stan Ulbrych
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement
Projects
- StatusShow more project fieldsNo status
Activity
StanFromIreland commentedon Feb 27, 2025
I'll open a PR for find sometime tomorrow :-)
gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656)
pythongh-130655: Increase test coverage of gettext._expand_lang() (py…
pythongh-130655: Increase test coverage of gettext._expand_lang() (py…
[3.12] gh-130655: Increase test coverage of gettext._expand_lang() (G…
[3.13] gh-130655: Increase test coverage of gettext._expand_lang() (G…
24 remaining items
pythongh-130655: Add a test for big-endian MO files in gettext (pytho…
[3.13] gh-130655: Add a test for big-endian MO files in gettext (GH-1…
dgettext#134593 as a duplicate of this issuegh-130655: gettext: Add fallback testcase (#136857)
pythongh-130655: gettext: Add fallback testcase (pythonGH-136857)
pythongh-130655: gettext: Add fallback testcase (pythonGH-136857)
[3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)
[3.14] gh-130655: gettext: Add fallback testcase (GH-136857) (#136862)
pythongh-130655: gettext: Add fallback testcase (python#136857)
pythongh-130655: gettext: Add fallback testcase (python#136857)
pythongh-130655: gettext: Add fallback testcase (python#136857)
[3.14] pythongh-130655: gettext: Add fallback testcase (pythonGH-136857…