-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Tests for the gettext module include cases which test both single and double quotes:
cpython/Lib/test/test_gettext.py
Lines 167 to 173 in de51ded
| def test_double_quotes(self): | |
| eq = self.assertEqual | |
| # double quotes | |
| eq(_("albatross"), 'albatross') | |
| eq(_("mullusk"), 'bacon') | |
| eq(_(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove') | |
| eq(_(r"nudge nudge"), 'wink wink') |
As the comment below suggests, these are not needed to properly test gettext as we are only testing translation lookup. The distinction between single and double quotes would be relevant for testing string extraction but that is not part of gettext. I suggest we remove these test cases.
cpython/Lib/test/test_gettext.py
Lines 10 to 13 in de51ded
| # TODO: | |
| # - Add new tests, for example for "dgettext" | |
| # - Remove dummy tests, for example testing for single and double quotes | |
| # has no sense, it would have if we were testing a parser (i.e. pygettext) |
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done