Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
[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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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') |
There was a problem hiding this comment.
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.
2d909c3
intopython:3.13Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
(cherry picked from commit87d9983)
Ok it wasn't that bad in the end, I just needed to update some of the test code.