Skip to content

gh-127488: Add tests for Tools/i18n/msgfmt.py #127540

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

Merged
merged 5 commits into from
Feb 16, 2025

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Dec 2, 2024

Adds tests for both the compilation itself and the CLI.

One thing I'm not so sure is about is keeping the binary MO file checked in git.
They are not compared byte by byte, instead I compare the parsed catalog files.
The catalogs could be saved in a human-readable format like JSON for example.

cc @srinivasreddy

@tomasr8
Copy link
Member Author

tomasr8 commented Dec 3, 2024

I'll fix the Windows failures in a bit (it's just about normalizing newlines)

@tomasr8
Copy link
Member Author

tomasr8 commented Dec 10, 2024

cc @serhiy-storchaka if you'd like having a look :)

@erlend-aasland erlend-aasland requested review from serhiy-storchaka and removed request for erlend-aasland January 4, 2025 22:08
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tomasr8
Copy link
Member Author

tomasr8 commented Jan 7, 2025

Thanks for the review! I addressed both of your comments :)

@tomasr8
Copy link
Member Author

tomasr8 commented Jan 29, 2025

Friendly reminder 🙂 @serhiy-storchaka

Copy link
Contributor

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@serhiy-storchaka serhiy-storchaka merged commit 361083b into python:main Feb 16, 2025
38 checks passed
@serhiy-storchaka serhiy-storchaka added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Feb 16, 2025
@miss-islington-app
Copy link

Thanks @tomasr8 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @tomasr8 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 16, 2025
@bedevere-app
Copy link

bedevere-app bot commented Feb 16, 2025

GH-130181 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 16, 2025
@bedevere-app
Copy link

bedevere-app bot commented Feb 16, 2025

GH-130182 is a backport of this pull request to the 3.13 branch.

serhiy-storchaka pushed a commit that referenced this pull request Feb 16, 2025
serhiy-storchaka pushed a commit that referenced this pull request Feb 16, 2025
@terryjreedy terryjreedy removed needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Feb 18, 2025
@terryjreedy
Copy link
Member

@hugovk One of the bots should have removed the backport labels after making the backports. The other obsolete labels I have removed involved the bpo-gh move or manual backports or some additional bot malfunction, whereas this has the 'is a backport' labels and otherwise looks normal.

@tomasr8 tomasr8 deleted the msgfmt branch February 18, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants