mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-129911: pygettext: Fix the keyword entry in help output (GH-129914)
This commit is contained in:
parent
3bd3e09588
commit
9d1e668e6f
3 changed files with 10 additions and 2 deletions
|
@ -413,6 +413,12 @@ class Test_pygettext(unittest.TestCase):
|
|||
self.assertIn(f'msgid "{text2}"', data)
|
||||
self.assertNotIn(text3, data)
|
||||
|
||||
def test_help_text(self):
|
||||
"""Test that the help text is displayed."""
|
||||
res = assert_python_ok(self.script, '--help')
|
||||
self.assertEqual(res.out, b'')
|
||||
self.assertIn(b'pygettext -- Python equivalent of xgettext(1)', res.err)
|
||||
|
||||
def test_error_messages(self):
|
||||
"""Test that pygettext outputs error messages to stderr."""
|
||||
stderr = self.get_stderr(dedent('''\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue