You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gettext: remove unecessary test cases testing single/double quotes #107510
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.
It is not so simply. Yes, the comment suggests to remove these tests, but they should be not syply removed, but replaced with proper tests for pygettext.
So I suggest to leave the tests and the comment as a reminder.
If that's the case, would it not make more sense to remove the tests and just update the comment then? So we keep the reminder but not the unnecessary tests
Activity
serhiy-storchaka commentedon Oct 8, 2023
It is not so simply. Yes, the comment suggests to remove these tests, but they should be not syply removed, but replaced with proper tests for
pygettext.So I suggest to leave the tests and the comment as a reminder.
tomasr8 commentedon Oct 8, 2023
If that's the case, would it not make more sense to remove the tests and just update the comment then? So we keep the reminder but not the unnecessary tests
tomasr8 commentedon Oct 9, 2023
FWIW, I have a PR which adds more tests to pygettext as well: #108173 Feel free to have a look :)
tomasr8 commentedon Dec 14, 2024
Now that tests have been added to pygettext, perhaps it's time to revisit this? @serhiy-storchaka
serhiy-storchaka commentedon Dec 14, 2024
Sure.
gh-107510: gettext: Remove unnecessary tests (GH-127965)
StanFromIreland commentedon Feb 16, 2025
Can this be closed? They have been removed and replaced.