-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gettext: remove unecessary test cases testing single/double quotes #107510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 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 |
FWIW, I have a PR which adds more tests to pygettext as well: #108173 Feel free to have a look :) |
Now that tests have been added to pygettext, perhaps it's time to revisit this? @serhiy-storchaka |
Sure. |
There are now separate pygettext tests.
Can this be closed? They have been removed and replaced. |
Uh oh!
There was an error while loading. Please reload this page.
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
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
Linked PRs
The text was updated successfully, but these errors were encountered: