| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…text Add focused test coverage for the domain-specific gettext functions that were previously only tested indirectly. This extends the work started in pythongh-134594 to cover all four domain-specific functions. Each function is tested with a for loop and subTests covering: - Existing translations - Missing translations (fallback to original message) - Nonexistent domains (fallback to original message) - Context-based translations (dpgettext, dnpgettext) - Plural forms (dngettext, dnpgettext) - Wrong/missing contexts Updated the TODO comment to reference the issue and additional functions that now have coverage.
|
The following commit authors need to sign the Contributor License Agreement: |
Sorry, something went wrong.
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead. |
Sorry, something went wrong.
|
Usually, it is common to first ask on the original PR whether the author intends to pursue their work before creating a similar PR. Please discuss this in #134594. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 90 days with no activity. |
Sorry, something went wrong.
|
Unresponsive author. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Motivation
This addresses the TODO at Lib/test/test_gettext.py:13-15 and extends the work in gh-134594 to cover all four domain-specific gettext functions.
Design
Each function is tested with a single test method using a for loop and subTest for clear failure reporting, following reviewer feedback:
All test classes inherit from GettextBaseTest to reuse existing .mo test fixtures. Tests follow reviewer feedback:
All 25 test assertions verified passing against the current main.