Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] gh-130197: pygettext: Test the --escape option (GH-131902)#132032

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

tomasr8
Copy link
Member

@tomasr8tomasr8 commentedApr 2, 2025
edited by bedevere-appbot
Loading

(cherry picked from commit87d9983)

Ok it wasn't that bad in the end, I just needed to update some of the test code.

…-131902)(cherry picked from commit87d9983)Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Comment on lines +404 to +423
def extract_from_snapshots():
snapshots = {
'messages.py': ('--docstrings',),
'fileloc.py': ('--docstrings',),
'docstrings.py': ('--docstrings',),
# == Test character escaping
# Escape ascii and unicode:
'escapes.py': ('--escape',),
# Escape only ascii and let unicode pass through:
('escapes.py', 'ascii-escapes.pot'): (),
}

for filename, args in snapshots.items():
if isinstance(filename, tuple):
filename, output_file = filename
output_file = DATA_DIR / output_file
input_file = DATA_DIR / filename
else:
input_file = DATA_DIR / filename
output_file = input_file.with_suffix('.pot')
Copy link
MemberAuthor

@tomasr8tomasr8Apr 2, 2025
edited
Loading

Choose a reason for hiding this comment

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

This is almost exactly what we have on main, I just needed to update it a bit to e.g. remove some CLI options that only exist on main, otherwise it's identical.

@serhiy-storchakaserhiy-storchakaenabled auto-merge (squash)April 2, 2025 20:27
@serhiy-storchakaserhiy-storchaka merged commit2d909c3 intopython:3.13Apr 2, 2025
38 checks passed
@tomasr8tomasr8 deleted the backport-87d9983-3.13 branchApril 2, 2025 20:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaAwaiting requested review from serhiy-storchaka

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@tomasr8@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp