Skip to content

Add translation tests for getopt and optparse #126413

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

Closed
tomasr8 opened this issue Nov 4, 2024 · 0 comments
Closed

Add translation tests for getopt and optparse #126413

tomasr8 opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
3.12 only security fixes 3.13 bugs and security fixes 3.14 bugs and security fixes tests Tests in the Lib/test dir type-feature A feature request or enhancement

Comments

@tomasr8
Copy link
Member

tomasr8 commented Nov 4, 2024

Feature or enhancement

Proposal:

Follow up from #124295
Now that we have translation tests for argparse, we should add translation tests for getopt and optparse as well.

Small note on the implementation: given that the tests will be almost identical to the existing argparse tests, I think it would make sense to create some helper functions in test.support in order to not duplicate the code.

I'm going to work on this issue :)

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@tomasr8 tomasr8 added type-feature A feature request or enhancement tests Tests in the Lib/test dir labels Nov 4, 2024
@tomasr8 tomasr8 self-assigned this Nov 4, 2024
@serhiy-storchaka serhiy-storchaka added 3.12 only security fixes 3.13 bugs and security fixes 3.14 bugs and security fixes labels Nov 11, 2024
tomasr8 added a commit to tomasr8/cpython that referenced this issue Nov 12, 2024
…pythonGH-126698)

(cherry picked from commit dff074d)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 only security fixes 3.13 bugs and security fixes 3.14 bugs and security fixes tests Tests in the Lib/test dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants